How are Variables Defined in PHP?

Answer Posted / master

ya i agree with priyanka, as she said in php variables r
loosely typed in the sense that , for example if u r wrking
in c and u want to assign int value to a variable then it
is done as int x=3; but in case of php the values r not
assigned along with the data type like int $x=3; (same as
above) instead its only $x=3; and the php parser
understands that it is int type and works accordingly.

hope u guys got it!!!

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to repeat a string to a specific number of times in php?

507


How to count a number of words in a string in php?

491


Explain mixed and callback functions?

593


How failures in execution are handled with include() and require() functions?

562


When should you use a stored procedure?

489






What is the use of get and post method in php?

517


What is the difference between associative array and indexed array?

489


What are the disadvantages of php?

487


How do I update php?

559


What is difference between readonly and constant?

482


Where is session value stored?

534


How do I use isdigit function?

539


How to do single and multi line comment in php?

536


What is data abstraction in php?

558


Write a program to display reverse of any number?

492