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

What is mvc in php?

1 Answers  


What is the use of curl()?

1 Answers  


Explain Traits in PHP?

1 Answers  


I am writing an application in php that outputs a printable version of driving directions. It contains some long sentences, and I am a neat freak, and would like to make sure that no line exceeds 50 characters. How do I accomplish that with php?

1 Answers  


Is php a case sensitive language?

1 Answers  


"mysql_fetch_row — Get a result row as an enumerated array",this sentence comes from the PHP offical manual.However ,i can not understand the words "enumerated array".I need some help.Thanks a lot to everyone that reply.

1 Answers  


How check field is empty or not in php?

1 Answers  


Tell me how to retrieve a cookie value?

1 Answers  


What is user defined function in php?

1 Answers  


How to include a file code in different files in php?

1 Answers  


What is ci framework in php?

1 Answers  


Which is useful for method overloading?

1 Answers  


Categories