-
-
Save parzibyte/8ad819dc033cbde6b3aecfce2faa3fca 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
<?php | |
/* | |
Separar cadena usando delimitadores en PHP | |
https://parzibyte.me/blog | |
*/ | |
$cadena = "parzibyte.mehttps://www.gogle.comhttps://facebook.com"; | |
$separador = "https://"; // Usar una cadena | |
$separada = explode($separador, $cadena); | |
var_dump($separada); | |
/* | |
Salida: | |
array(3) { | |
[0]=> | |
string(12) "parzibyte.me" | |
[1]=> | |
string(13) "www.gogle.com" | |
[2]=> | |
string(12) "facebook.com" | |
} | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment