-
Recent Posts
Tags
Recent Comments
Archives
Categories
Meta
Tag Archives: preg_match
Cut A String by a number of words PHP
Cut_string_by_words function cuts a string by a number of words specified in $num_of_words argument. Sample Code:
php spam check function isSpam
Nobody likes spam and web sites with ton of spams can be annoying to the end users and frustrating to the web master or developer. Using regular expression and php function preg_match, we can check for spam as shown in function isSpam below. Continue reading