Re: Adding a more logical string slicing function to PHP
| From: | Brian Moon | Date: | Thu, 31 Mar 2011 15:43:13 +0000 |
| Subject: | Re: Adding a more logical string slicing function to PHP | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-51769@lists.php.net to get a copy of this message | ||
$instr = (bool)strstr($string1, $string2); done. No need for a new function. Brian.How would str_contains() be different from strstr()?They differ in the return type