why we use @symbol before the variable

Answers were Sorted based on User's Feedback



why we use @symbol before the variable..

Answer / vishal lakhani

@ in PHP 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.means
if errors comes and if u r Using@varialbe infront of any PHP
function it dont show any Error

Is This Answer Correct ?    50 Yes 2 No

why we use @symbol before the variable..

Answer / srividya

This @ Error control Operator suppress the error message

Is This Answer Correct ?    19 Yes 0 No

why we use @symbol before the variable..

Answer / ritu

All PHP expressions can be called with the "@" prefix, which
turns off error reporting for that particular expression.

Is This Answer Correct ?    5 Yes 2 No

why we use @symbol before the variable..

Answer / subhasmita

by the help of the symbol@ we can minimize the error

Is This Answer Correct ?    2 Yes 2 No

why we use @symbol before the variable..

Answer / fg

hg

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More PHP Interview Questions

What is php session id?

0 Answers  


Does wordpress run on php 7?

0 Answers  


How does php work with apache?

0 Answers  


How can I use single quotes in single quotes in php?

0 Answers  


What is difference between base_url and site_url?

0 Answers  






What are the 5 types of data?

0 Answers  


Which is the best method to fetch the data from mysql? 1.mysql_fetch_array() 2.mysql_fetch_object() 3.mysql_fetch_row() 4.mysql_fetch_assoc()

6 Answers  


What is framework in php for beginners?

0 Answers  


How can you execute php script from the command line?

0 Answers  


How to include variables in double-quoted strings?

0 Answers  


How to implement a class named dragonball. This class must have an attribute named ballcount (which starts from 0) and a method ifoundaball. When ifoundaball is called, ballcount is increased by one. If the value of ballcount is equal to seven, then the message you can ask your wish is printed, and ballcount is reset to 0. How would you implement this class?

0 Answers  


What is serialization / object serialization ?

2 Answers  


Categories