note 82532 deleted from function.strstr by felipe

From: Date: Fri, 18 Apr 2008 16:17:18 +0000
Subject: note 82532 deleted from function.strstr by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-138494@lists.php.net to get a copy of this message
Note Submitter: joachimb at gmail dot com ---- I would strongly recommend that you use regular expressions instead of strlen, strstr, strpos and friends at all times if at all possible. Trust me, the few hours you spend on learning regular expressions will save you ten-fold that time in writing code, plus it'll probably be less buggy. http://www.regular-expressions.info/ is a great starting point. If you're a Mac user, use http://reggyapp.com/ to tweak your regular expressions until they correctly match your test data. I'm sure there are similar tools for Windows.

« previous php.notes (#138494) next »