Created
August 20, 2019 23:31
-
-
Save parzibyte/a0cd675a7ccf8a0f14ce8715e3423528 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, 6, 5); | |
echo "Cortada: $cortada"; | |
#Salida: Cortada: mundo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment