Hi,
Ich möchte einen String ab einer bestimmten länge abschneiden.
$sting='hallo was ist # da los';
strstr($string, '#', true)
das klappt, nur wenn kein # im string ist, wir der ganze Sting weggeschnitten, wie kann ich das verhindern?
Kurz Hirn benutzen: Indem du, egal ob eins drin ist oder nicht, ein # hinten dran hängst …
strstr($string . '#', '#', true)
MfG ChrisB
--
Autocomplete has spoiled me to a point where it happens every so often that I encounter a CAPTCHA, and I just type in the first character … and then wait for the rest of the code to be automatically suggested :/
Autocomplete has spoiled me to a point where it happens every so often that I encounter a CAPTCHA, and I just type in the first character … and then wait for the rest of the code to be automatically suggested :/