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

PHP: Conversion automatique des types


{filelink=15075}

<?php

/* La variable $num est utilisée comme
   un valeur numérique
*/
$num = "0";
echo "$num.<br/>";
$num++;
echo "$num.<br/>";
$num += 1;
echo "$num.<br/>";
$num = $num + 1.3;
echo "$num.<br/>";
$num = 8 + "10 L";
echo "$num.<br/>";
$num = 6 + "10 S";
echo "$num.<br/>";
?>

No comments yet.

Leave a Comment