I have a string $string = "my text line 01<br>my text line 02<br>my text line 03"; PHP: I want to make another array like string and put on $array variable that will look like $array = array( array('my text line 01'), array('my text line 02), array('my text line 03) ); PHP: PLEASE HELP ME
You can use explode function: here is the example: $array = explode("<br>", $string); PHP: it will make your string to array. Then you process the array[index] to another array as you like.
<?php $string = "my text line 01<br>my text line 02<br>my text line 03"; $arr = split("<br>",$string); $arr1 = explode("<br>",$string); $arr2 = preg_split('|<br>|si',$string); PHP: There are too many methods...pls check these code.