what are the rules to be followed at the time of declaring
a variable?,what is the purpose of var_dump()function in
php,syntax of ternary operator()in php,difference between
drop a table and truncate a table...

Answers were Sorted based on User's Feedback



what are the rules to be followed at the time of declaring a variable?,what is the purpose of var_..

Answer / naaz

Drop a table:erases the table structure along with any data
in the table fromt the database.Whereas the truncate
command empties all the rows without touching the structure

cheers!!

Is This Answer Correct ?    5 Yes 0 No

what are the rules to be followed at the time of declaring a variable?,what is the purpose of var_..

Answer / priti raj

Variables should starts from _ or alphabets(a-z).
var_dump() prints the array with the datatype also.
syntex of ternary operator() is like
(condition)?'act1':'act2' ;

Is This Answer Correct ?    6 Yes 1 No

Post New Answer

More PHP Interview Questions

Which of the following represents the proper way to set a session variable? Answer: a. $_SESSION['foo'] = 'bar'; b. session_start(); c. session_set_save_handler ('myopen', 'myclose', 'myread', 'mywrite', 'mydelete', 'mygarbage'); d. $foo = $_SESSION['foo']; 2.When administering MySQL, you should make the data directory accessible via the operating system 3.which statement can be used to determine how the optimizer resolves a query

9 Answers   Cybercom, TCS,


Are php short tags acceptable to use?

0 Answers  


What is the meaning of symbol '$' in jquery?

0 Answers  


Explain what is the difference between mysql_fetch_array() and mysql_fetch_assoc()?

0 Answers  


Which is the correct way to check if a session has already been started ?

0 Answers  






What types of loops exist in php?

0 Answers  


How can I convert ereg expressions to preg in php?

0 Answers  


Explain object-oriented methodology in php?

0 Answers  


How to protect special characters in query string?

0 Answers  


What is 'float' property in css?

0 Answers  


Applications written to provide a GUI shell for Unix and Linux are called

0 Answers  


Why session is required?

0 Answers  


Categories