Using the @ operator to suppress a warning about the undefined variables : Php Functions « Language Basics « PHP






Using the @ operator to suppress a warning about the undefined variables

 
<?php 
$scores = array(88, 75, 91, 84); 

list($maths, , $history) = $scores; 
 
@printf("<p>Maths: %d; English: %d; History: %d; Biology: %d.</p>\n", 
$maths, $english, $history, $biology); 
?>
  
  








Related examples in the same category

1.Functions to Check Data Type
2.Functions to Convert Data Types
3.Functions to Test Data Types
4.GMP Functions