php - Need help in splitting a string in variable and assign it's parts to an array -
A string from one of my PHP scripts is generated such as:
' Some / test / <'> I want to divide that type of string by keyword / and then assign those parts to preg_match Or something else. The output should look like this: array ('0' = & gt; 'some', '1' = & gt; 'test,' 2 '= & gt; 1 ');
& lt ;? Php $ te = "some / test / 1"; $ Ka = explosion ('/', $ te); Print_r ($ ka);
Comments
Post a Comment