Showing posts with label functions. Show all posts
Showing posts with label functions. Show all posts

sample questions

0 comments Posted by Unknown at 18:57
Function in php

What Is the Scope of a Variable Defined in a Function?
The scope of a local variable defined in a function is limited with that function. Once the function is ended, its local variables are also removed. So you can not access any local variable outside its defining function. Here is a PHP script on the scope of local variables in a function:
<?php
?>
function myPassword() {
  $password = "U8FIE8W0";
  print("Defined inside the function? ". isset($password)."\n");
}
Read More »
 

© 2011. All Rights Reserved | Interview Questions | Template by Blogger Widgets

Home | About | Top