Searching Strings
Problem You want to search a string for a particular pattern or substring. Solution Use a regular expression with PHP’s ereg() function: <?php // define string $html = “I’m <b>tired</b> and so I <b>must</b>...
Problem You want to search a string for a particular pattern or substring. Solution Use a regular expression with PHP’s ereg() function: <?php // define string $html = “I’m <b>tired</b> and so I <b>must</b>...
More