ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Scripts  >>  PHP
 
 


 

 
 PHP interview questions  PHP Interview Questions
 ASP interview questions  ASP Interview Questions
 CGI Perl interview questions  CGI Perl Interview Questions
 JavaScript interview questions  JavaScript Interview Questions
 VB Script interview questions  VB Script Interview Questions
 JSP interview questions  JSP Interview Questions
 Shell Script interview questions  Shell Script Interview Questions
 Python interview questions  Python Interview Questions
 Tcl interview questions  Tcl Interview Questions
 Awk interview questions  Awk Interview Questions
 AJAX interview questions  AJAX Interview Questions
 Ruby on Rails interview questions  Ruby on Rails Interview Questions
 Scripts AllOther interview questions  Scripts AllOther Interview Questions
Question
How are Variables Defined in PHP?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How are Variables Defined in PHP?
Answer
# 1
variable r defined using the $ symbol.for ex: $x,$value etc.
u can even asign the values directly like $x=10 or $x='php';
 
Is This Answer Correct ?    2 Yes 0 No
Master
 
  Re: How are Variables Defined in PHP?
Answer
# 2
php is a loosely typed language i.e without declaring a
variable we can use that,in this variable defined by using $
symbol for example $x
 
Is This Answer Correct ?    3 Yes 0 No
Priyanka
 
 
 
  Re: How are Variables Defined in PHP?
Answer
# 3
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 ?    1 Yes 0 No
Master
 
  Re: How are Variables Defined in PHP?
Answer
# 4
Variables in PHP declared with $ symbol. ex: $x.
 
Is This Answer Correct ?    2 Yes 0 No
Srinivas1982
[SAND Software Solutions Pvt Ltd]
 

 
 
 
Other PHP Interview Questions
 
  Question Asked @ Answers
 
Who is the father of PHP and explain the changes in PHP versions? iMark-Group3
Why using the htaccess file  2
How can I add text to an image? Rushmore-Consultancy1
How to find out, how a user visited a particular page? Yahoo3
How can we create a database using PHP and mysql?  2
How would you impletement download and upload a file in php A1-Technology2
What is PHP?  8
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 TCS7
What are the current versions of apache, PHP, and mysql?  3
In how many ways we can retrieve the date in the result set of mysql using PHP?  1
does PHP support foreign key and Rollback?yes or not.if not then why. how will you done these concept in php? Avanigoradia1
In How many ways can u represent Not equal?Give Syntax of all ways..  3
what are in image creating functions in php A1-Technology4
Suppose a variable may passed to other page using any of get,post,session,cookie methods and u want to retrive that variable value . what is the syntax?  6
what are Implode and Explode functions?  2
hi to all i am fresher in php and want to learn php and want a fresher job in php. how to total time i expend to learn php and what is freshers salary.  2
What are the differences between require and include, include_once?  2
What is indexing in mysql and how do we create indexing in mysql  2
How can I loop through the members of an array? Rushmore-Consultancy1
suppose if u want to pass session value using cookies onlu.. what changes i've to made in php.ini file?  1
 
For more PHP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com