Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
if(strstr($zerlegen[$i], '.') == "" and strstr($zerlegen[$i], '!') == "" and strstr($zerlegen[$i], ',') == "" and strstr($zerlegen[$i], '?') == "")
if(strpos($text, '.'=== false).....)
function find_string($string,$search,$find_all=false){
if($find_all){
$match='#';
for($i=0;$i<strlen($string);$i++){
if($string[$i]==$search)
$match=$match.' | '.$i;
}
return substr($match,3);
}else{
$match='#';
for($i=0;$i<strlen($string);$i++){
if($string[$i]==$search)
$match=$i;
}
return $match;
}
}
(string)$string = "hallo";
(string)$search = "l";
$find_all = true: (findet alle Positionen getrennt durch |)
echo find_string($string,$search);
-> 2 | 3
$find_all = false: (findet die letzte Position)
echo find_string($string,$search);
-> 3
wenn der string nicht gefunden wird gibt er # zurück...
We use essential cookies to make this site work, and optional cookies to enhance your experience.