Re: first letter

From: Date: Mon, 20 Dec 2004 20:06:33 +0000
Subject: Re: first letter
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-204759@lists.php.net to get a copy of this message
Ahmed Abdel-Aliem wrote:
hi if i have for example this variable $name = "John"; how can i echo the first letter only so the result on the browser will be "J" can anyone help ? echo $name{0};


« previous php.general (#204759) next »