Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

PHP: Obtenir les types des variables


{filelink=15051}

<html>
<head><title>PHP: Types des Variables</title></head>
<body>
<div>
<?php
    $variables; // declarée sans être assignée
    echo gettype( $variables );
    echo "<br />";
    $variables = 14;
    echo gettype( $variables );
    echo "<br />";
    $variables = "five";
    echo gettype( $variables );
    echo "<br />";
    $variables = 5.4;
    echo gettype( $variables );
    echo "<br />";
    $variables = pow(10,25);
	echo gettype( $variables );
    echo "<br />";
    $variables = true;
    echo gettype( $variables );
    echo "<br />";
    $variables = new ArrayIterator();;
	echo gettype( $variables );
    echo "<br />";
?>
</div>
</body>

No comments yet.

Leave a Comment