11.09.2018 Views

Aprender a desarrollar un sitio Web con PHP y MySQL

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

24/4/2014 ENI Training - Libro online<br />

5. F<strong>un</strong>ciones útiles<br />

La f<strong>un</strong>ción isset() permite probar que existe <strong>un</strong>a variable. Si existe, devuelve true, y si no<br />

existe, false.<br />

Por ejemplo:<br />

<br />

Da como resultado:<br />

La variable existe.<br />

Por tanto, su sintaxis es:<br />

$existe = isset ($variable);<br />

La f<strong>un</strong>ción var_dump() permite mostrar el tipo de <strong>con</strong>tenido y el <strong>con</strong>tenido de <strong>un</strong>a variable.<br />

Por ejemplo:<br />

<br />

Da como resultado:<br />

string(21) "Hola, hace buen tiempo"<br />

Por tanto, su sintaxis es:<br />

var_dump($variable);<br />

Esta f<strong>un</strong>ción también acepta las tablas como parámetro.<br />

Por ejemplo:<br />

<br />

http://www.eni-training.com/client_net/mediabook.aspx?idR=87313 5/15<br />

www.FreeLibros.me

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!