Quantcast
Browsing all 2 articles
Browse latest View live

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...

View Article


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 total words of...

View Article

Browsing all 2 articles
Browse latest View live