php echo starts with '@' sign for show a variable,
Example:
<?php echo @$user_profile['id'];?>
why @ sign used here?
php echo starts with '@' sign for show a variable,
Example:
<?php echo @$user_profile['id'];?>
why @ sign used here?
That is just suppressing notices when the variable is not available.
See http://php.net/manual/en/language.operators.errorcontrol.php for more info.
PHP supports one error control operator: the at sign (@). When prepended to an expression in PHP, any error messages that might be generated by that expression will be ignored.
PHP supports one error control operator: the at sign (@). When used with an expression in PHP, any error messages that might be generated by that expression will be ignored.