Faltu Funda| 30 Mar 2008 | |||||
|---|---|---|---|---|---|
|
practice interviews and prepare for interviews in todays changing world every one want to increase there salaries very quickly. Changes your employer is an very efficient solution for this. But changing employer and company is not so easy. cont.. |
||||
| 20 Oct 2007 | |||||||
|---|---|---|---|---|---|---|---|
|
PHP SnippetsSome useful php tips1. /* Extract all the values of an associative array in variables */ extract($array); //You can use this for extracting $_GET and $_POST arrays 2. /* Ternary operator if() ... else .... */ echo ($x == 0)? "not zero " : " Zero"; 3. /* Long String */ $str = <<<STR Write anyting here it will be treated as string YOu can write here variables $var ( it will be converted in vars vaue) STR; 4. /* View page source Make link for this like <a href="="<?=$PHP_SELF?>?src=1">View Source</a> */ if($src){ highlight_file(basename($_SERVER['PHP_SELF'])); exit; } 5. /* Specify any function to run after current script finishes execution */ register_shutdown_function( some-function ); 6. /* get last element of any arrray */ end($array); 7. /* Display any array in formatted style */ echo "<pre>"; print_r($array); echo "</pre>"; 8. /* Set error display off or on */ // to set errors on except notices ini_set('display_errors','on'); ini_set('error_reporting',E_ALL ^ E_NOTICE); // Put all the error off ini_set('display_errors','off'); ini_set('error_reporting','off'); |
||||||
|
|||||||||
1