I want to find the first space after the 60th characters?
Exactly I want to find the accurate position of a delimiter within a defined string, but only after the 60th letter!
Thanks for replying 😕
Hey just use substr.
here is the var that holds you string say $string
then u go
$anothervar = substr($string,60);
use substr() to cut the string up to the 60th character http://www.php.net/manual/en/function.substr.php
then use strpos() to search for the " " character
http://www.php.net/manual/en/function.strpos.php
$your_string = " blah blah ......."; $temp_string = substr($your_string,60); echo strpos($temp_string," ");
reg kevin
Originally posted by kevinsequeira use substr() to cut the string up to the 60th character ...
Many thanks kevinsequeira, I was just missing the strpos function. Koooooooooooooool 🆒