<?php
$links = "http://site1.com/embed1/CODIGO
http://site2.com/embed2/CODIGO
http://site3.com/embed3/CODIGO
http://site4.com/embed4/CODIGO";
var_dump(explode("\n" , $links));
- Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
- array(4) {
[0]=>
string(30) "http://site1.com/embed1/CODIGO"
[1]=>
string(30) "http://site2.com/embed2/CODIGO"
[2]=>
string(30) "http://site3.com/embed3/CODIGO"
[3]=>
string(30) "http://site4.com/embed4/CODIGO"
}
preferences:
256.25 ms | 404 KiB | 283 Q