Note: The archives category content is an automatically generated focus channel and does not neccessarily reflect the opinions of this blog. No responsibility is taken for the external links presented here, follow at your own discretion.
The archives content is never scraped from sites - but an abstract obtained from search engines.
| Problem |
Solution |
Example |
Reference |
Recommended |
Again PHP implementation of regular expression is very similar to Perl. In the simpliest form, pattern matching: $ php -q<<EOT <?php $str=”hello world”; if(ereg(”world”,”$str”)) { echo(”got a match”); } ?> EOT got a match
|
|
| Problem |
Solution |
Example |
Reference |
Recommended |
Similarly eregi operates the same, just it is case insensitive. $ php -q<<EOT <?php $str="hello world"; if(eregi("WORLD","$str")) { echo("got a matchn"); } ?> EOT got a match
|
Leave a Reply
You must be logged in to post a comment.