Codeasearch.com - Search your code with us Login | Register | Contact us
  Forums > Php > Interview Question
kevin
Posted on Nov 22, 2008
Join Date: May 2008
Location: India ( chennai )
Posts: 4978
 
Interview Question  

Hi,
Lets start posting php interview Question and Answer in this thread.


Thank you,
Kevin

webhelp
Posted on Dec 8, 2008
Join Date: November 2008
Location: India ( Chennai )
Posts: 21
 
RE : Interview Question  

Hi,
Check it for interview question.

http://placementhelper.blogspot.com/2008/04/php-interview-questions.html
http://pritisolanki.wordpress.com/

vinothbabu
Posted on Nov 24, 2008
Join Date: November 2008
Location: India ( chennai )
Posts: 7
 
RE : Interview Question  

What is the difference between CHAR and VARCHAR data types?

CHAR is a fixed length data type. CHAR(n) will take n characters of storage even if you enter less than n characters to that column. For example, \"Hello!\" will be stored as \"Hello! \" in CHAR(10) column.

VARCHAR is a variable length data type. VARCHAR(n) will take only the required storage for the actual number of characters entered to that column. For example, \"Hello!\" will be stored as \"Hello!\" in VARCHAR(10) column.

How can we encrypt and decrypt a data present in a mysql table using mysql?

AES_ENCRYPT() and AES_DECRYPT()

vinothbabu
Posted on Nov 24, 2008
Join Date: November 2008
Location: India ( chennai )
Posts: 7
 
RE : Interview Question  

For printing out strings, there are echo, print and printf. Explain the differences.

echo is the most primitive of them, and just outputs the contents following the construct to the screen. print is also a construct (so parentheses are optional when calling it), but it returns TRUE on successful output and FALSE if it was unable to print out the string. However, you can pass multiple parameters to echo, like:

<?php echo 'Welcome ', 'to', ' ', 'php!'; ?>

and it will output the string "Welcome to php!" print does not take multiple parameters. It is also generally argued that echo is faster, but usually the speed advantage is negligible, and might not be there for future versions of PHP. printf is a function, not a construct, and allows such advantages as formatted output, but it’s the slowest way to print out data out of echo, print and printf.

 Hot Discussion
Go Tech launches Android tablet for Rs 3,999...
Sony targets retailers with quick sales pitches and rew...
Share and discover new activities with Google Schemer...
Samsung gets 9 mn preorders for Galaxy S3: Report...
Google revamps search engine to think like a person...
 
 Discussion Topics
IT News
Php
Javascript
Technology Updates
Asp.Net
MySql
Ajax
Html
Fedora
Software Testing
Asp
Java
General
Flash
Ruby on Rails