note 8005 deleted from function.strpos by jimw

From: Date: Thu, 18 Oct 2001 21:25:23 +0000
Subject: note 8005 deleted from function.strpos by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-19124@lists.php.net to get a copy of this message
Just a function to strip the first char. This function checks if the char given is the first char of the given string, if so... strip it... function stripFirstChr($firstChr,$string){ if(strpos("_".$string,"$firstChr")==1){ return substr($string,1); }else{ return $string; } }

« previous php.notes (#19124) next »