Est-elle "deprecated" ?
<?php /*********************************** * Testes de la fonction strpos * http://php.net/manual/fr/function.strpos.php ************************************/ $subindex = "monfichier.txt"; echo "<pre>"; $resultTest = strpos($subindex,'.')?"TRUE":"FALSE"; echo "<br> Est-ce egale à false ou True ? :".$resultTest."<br>"; if (strpos($subindex,'.')!==FALSE) { $xpoint = explode('.',$subindex); $subindex = $xpoint[1]; print_r($xpoint); echo "<br>subindex = ".$subindex; }else { echo "<br> ==FALSE <br>"; echo "<br> subindex : ".$subindex; } echo "</pre>"; ?>
$xpoint = explode('.',$subindex); $subindex = (count($xpoint)>1) ? $xpoint[1] :'';