PHP


24

Oct 2015

Remove comma(Strip whitespace) before or after a string

Function used :  Syntax:    Example :  Output : trim() function remove comma from first and last ltrim() and rtrim() : rtrim() : Strip whitespace (or other characters) from the end of a string ltrim() : Strip whitespace (or other characters) from the end of a string Example :  Output : trim() function remove comma from first and last


19

Aug 2015

Display twitter feed on website using PHP

Display twitter feed on website using php First -> include “TwitterAPIExchange.php” and “twitteroauth.php” files.


19

Aug 2015

Difference between Plugin and Widgets in WordPress

 Wordpress Plugin : WordPress plugin are the function that do something to your website in which we can add our logic and concept. Plugin are for the back-end and never be visible to you or the public. WordPress Widgets: WordPress Widgets is an object you can add to your sidebar usually derived from a plugin. Widgets are always plugins, but plugins don’t always have widgets. Or...

Read More


19

Aug 2015

Missing element in Array Using PHP

Missing element in Array Using PHP By using arry_diff function we can easily find the missing element in a given array. Example:


19

Aug 2015

Compress and Uncompressed string in PHP

In php, it is possible to compress and uncompress a string. Output : Actual String length :282 Actual String Data :Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc ut elit id mi ultricies adipiscing. Nulla facilisi. Praesent pulvinar, sapien vel feugiat vestibulum, nulla dui pretium orci, non ultricies elit lacus quis ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. String length after compress...

Read More



Page 3 of 512345