Created
August 7, 2019 21:32
-
-
Save parzibyte/bc7ad9abb1768ff67a6da99d25693027 to your computer and use it in GitHub Desktop.
Convertir cadena a entero en PHP - https://parzibyte.me/blog/2018/10/03/php-intval-y-strval-para-convertir-variables/
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 | |
$cadena = "123"; | |
$entero = intval($cadena); #Ahora $entero es un verdadero entero |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment