You Are Here Home > Accessing single character inside PHP strings

Accessing single character inside PHP strings

In PHP5 you don’t do it like

$char = $string{2};

Do it like:

$char = $string[2];

The curly braces syntax is deprecated!

Accessing single character inside PHP strings
Filed under: PHP,Web Development   Posted by: Hamid

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment