Re: Adding a more logical string slicing function to PHP

From: 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
How would str_contains() be different from strstr()?
They differ in the return type
$instr = (bool)strstr($string1, $string2); done. No need for a new function. Brian.

« previous php.internals (#51769) next »