revin la php
Scris: Lun Mar 22, 2010
Am inceput sa invat php dar am o intrebare scriu in editorul de teste
<?php
$var1 = TRUE;
$var2 = 100;
$var3 = 23.88;
$var4 = "Nume";
$var[5] = "fructe";
echo gettype($var1);
echo '<br />'.gettype($var2);
echo '<br />'.gettype($var3);
echo '<br />'.gettype($var4);
echo '<br />'.gettype($var[5]);
echo '<br />'.gettype($var6);
?>
ar in browser apare
boolean
integer
double
string
string
Notice: Undefined variable: var6 in C:\wamp\www\Teste.php on line 12
NULL
e normal sa apara nota?
<?php
$var1 = TRUE;
$var2 = 100;
$var3 = 23.88;
$var4 = "Nume";
$var[5] = "fructe";
echo gettype($var1);
echo '<br />'.gettype($var2);
echo '<br />'.gettype($var3);
echo '<br />'.gettype($var4);
echo '<br />'.gettype($var[5]);
echo '<br />'.gettype($var6);
?>
ar in browser apare
boolean
integer
double
string
string
Notice: Undefined variable: var6 in C:\wamp\www\Teste.php on line 12
NULL
e normal sa apara nota?