You are viewing an old revision of this post, from October 18, 2013 @ 00:13:29. See below for differences between this version and the current revision.

How to convert a string to an array in php

[php] $str="this is string"; $array=explode(" ",$str); print_r($array); ?> Array ( [0] => this [1] => is [2] => string )[/php]

Revisions

Revision Differences

There are no differences between the October 18, 2013 @ 00:13:29 revision and the current revision. (Maybe only post meta information was changed.)

Tags: , , ,

No comments yet.

Leave a Reply