To String Magic Method in PHP - Become a PHP Master - 23

Publicado el: 08 mayo 2019
en el canal de: Atif Naseem
430
8

This magic function does not accept any arguments with it and returns a string value. All the functions that start with a double underscore are especially reserved for Objects.

__toString must always return a string, otherwise the function gives a fatal error. Also, there is no way to throw an exception from within __toString resulting into an error.

#PHPTutorial #PHPForBeginners #AtifNaseem


En esta página del sitio puede ver el video en línea To String Magic Method in PHP - Become a PHP Master - 23 de Duración hora minuto segunda en buena calidad , que subió el usuario Atif Naseem 08 mayo 2019, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 430 veces y le gustó 8 a los espectadores. Disfruta viendo!