-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunciones.php
More file actions
31 lines (25 loc) · 1.2 KB
/
Copy pathfunciones.php
File metadata and controls
31 lines (25 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<?php
///////////////////////////////////////////gettype($miNombre)/////////////////////////////////////////////
//
echo 'La variable $miNombre es de tipo: '.gettype($miNombre).'.<br>';// Devuelve el tipo de dato de la variable de entrada
/////////////////////////////////////////// isset($altura)////////////////////////////////////////////////
//
echo '¿esta $miNombre inicializada?'.isset($altura).'<br>';//Devuelve true si la variable ha sido previamente definida, false en caso contrario. Es una función que permite varios argumentos o parametros de entrada. El resultado es una operación AND
//////////////////////////////////////////// empty($peso)/////////////////////////////////////////////////
//
echo '¿$peso esta vacia?'.empty($peso).'<hr>';
//En empty() solo se permite el paso de un argumento
/////////////////////////////////////////////$var_name)////////////////////////////////////////////////////
//
unset($miNombre);
// destruye el valor de las variables que le pasamos como argumento
?>
</body>
</html>