You Are Here Home > Accessing single character inside PHP strings
DirectorySync is a directory synchronizing and backup utility providing automated, real-time syncing and scheduled, configurable backups at an affordable price.

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: Codehead
Do you have any questions? ask here.




No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment