Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $str = "test1@gmail.com name1 surname1 patronymic1n
- test2@gmail.com name2 surname2 patronymic2n
- test3@gmail.com name3 surname3 patronymic3n
- test4@gmail.com name4 surname4 patronymic4"
- foreach(explode("n", $str as array)){
- $list($email, $name, $surname, $patronymic) = explode(' ', $array){
- $final = ['email'=>$email, 'value'=>$name.' '.$surname.' '.$patronymic];
- }
- }
Add Comment
Please, Sign In to add comment