PHP Subscribe RSS feed of category PHP

List/Grid
How to Parse HTML tags using PHP

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… Read more »

How to Count the Total Words of String in PHP

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… Read more »

How to Replace String in PHP

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… Read more »

© 2012 Ataaso. All rights reserved.