Sep 25, 2003 #1 farley99 MIS Joined Feb 12, 2003 Messages 413 Location US How do I count .'s in a string? if(number_of_.'s(sub.domain.com)>1)) echo "this is a subdomain"; What would the correct syntax be?
How do I count .'s in a string? if(number_of_.'s(sub.domain.com)>1)) echo "this is a subdomain"; What would the correct syntax be?
Sep 25, 2003 1 #2 sleipnir214 Programmer Joined May 6, 2002 Messages 15,350 Location US http://php.he.net/manual/en/function.substr-count.php Want the best answers? Ask the best questions: http://www.catb.org/~esr/faqs/smart-questions.htmlTANSTAAFL!! Upvote 0 Downvote
http://php.he.net/manual/en/function.substr-count.php Want the best answers? Ask the best questions: http://www.catb.org/~esr/faqs/smart-questions.htmlTANSTAAFL!!