Created
February 14, 2019 23:13
-
-
Save unaibamir/3b3900d306ec1ade909075a41bfdf4ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$output = array( | |
0 => {value1 test {some text test} abc ksa dgsd}{value2 sadasdasdasd {some text more} xyz test unaib} | |
1 => value1 test | |
2 => some text test | |
3 => abc ksa dgsd | |
4 => value2 sadasdasdasd | |
5 => some text more | |
6 => xyz test unaib | |
) | |
$result = array( | |
$output[1] . " {" . $output[2] . "} " . $output[3], | |
$output[4] . " {" . $output[5] . "} " . $output[6] | |
); | |
var_dump($result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment