PHP Subscribe RSS feed of category PHP
List/Grid
How to Parse HTML tags using PHP
PHP has the built-in function strip_tags() for this purpose. strip_tags() function strips a string from HTML, XML, and PHP tags. Syntax: strip_tags(string,allow) Parameters: String – required and used for checking…
How to Count the Total Words of String in PHP
Here is my simplest code for counting the words of any sentence CODE function count_words($val) { $val = explode(‘ ‘,$val); $val = count($val); return $val; } This function returns the…
How to Replace String in PHP
PHP language has an function which is used to replace a string with another string. This Function is worked by following Syntax: str_replace(find,replace,string,count) Parameters: Find – Required and used for…

