Created
August 20, 2019 23:18
-
-
Save parzibyte/dd88e7f6bf62a5cc25c29ebe6bce8cd6 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 | |
/* | |
Cortar cadenas en PHP | |
@author parzibyte | |
https://parzibyte.me/blog | |
*/ | |
$cadena = "Hola, mundo. Programando en PHP desde parzibyte.me"; | |
$cortada = substr($cadena, 0, 12); | |
echo "Cortada: $cortada"; | |
#Salida: Cortada: Hola, mundo. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment