Mostrar lista de opciones

strcspn()

« strcmp | stream_get_wrappers »
<?php
$int 
strcspn (
    
// string $str1
    
// string $str2
    
// [int $start]
    
  // [int $length]
);
?>
Resultado
$int = 0
Ejemplos
#1 strcspn  ("abcd",
 
"apple")
#2 strcspn  ("abcd",
 
"banana")
#3 strcspn  ("hello",
 
"l")
#4 strcspn  ("hello",
 
"world")
Ver también
strspn