hi
u know this code show until first * character
$man="this * is * a * bool "; echo substr($man,0,strcspn($man,'*')); // this
but i want to show until 3'st charcter (this is * a)
anyone can help me?
Im not entirly sure what your talking about can be more specific?
does this help?
<? $man="this * is * a * bool "; $buff = explode('*',$man); for ($i=0;$i <= 2;$i++) {echo $buff[$i];}; ?>