ÍÆ¼ö:yahooµÄphpÃæÊÔÌâ
ºÇºÇ£¬·ÒëÁËÆª¶«Î÷£¬N³¤Ê±¼äûÓÃÓ¢ÓïÁË£¬³öÁ˳ó´ó¼Ò¿ÉÒ»¶¨ÒªÖ¸³öÀ´°¡¡£·Òë×Ô£ºNick Halstead's Blog
A friend recently got some pre-interview questions from YAHOO for a PHP
job. Following up my previous post about programmer questions I
thought I would post them to give people examples of what a large
corporation like YAHOO asks.
×î½üһλÅóÓѵõ½ÁËYahooµÄһЩPHPÃæÊÔÌâÄ¿£¬ÒÀÕÕÎÒ֮ǰ·¢±í¹ØÓÚ³ÌÐòÔ±µÄÏà¹ØÎÄÕµÄÔÔò£¬ÎÒÏëÎÒÓ¦¸ÃÔÚÕâÀï·¢²¼³öÀ´£¬ÒÔ¸ø¶ÁÕßÅóÓÑÃÇÌṩһЩÀý
×Ó£¬Èôó¼Ò¿´¿´ÏñYAHOOÕâÑùµÄ´ó¹«Ë¾¹ØÐÄÄÄЩÎÊÌâ¡£
1. Which of the following will not add john to the users array?
1¡¢ÏÂÃæÄĸöÑ¡ÏîûÓн« john Ìí¼Óµ½users Êý×éÖУ¿
1. $users[] = ‘john’;
2. array_add($users,’john’);
3. array_push($users,‘john’);
4. $users ||= ‘john’;
2. What’s the difference between sort(), assort() and ksort? Under what
circumstances would you use each of these?
2¡¢sort(), asort()(×¢£ºÔ×÷ÕßΪassort,Ó¦¸ÃÊDZÊÎó)ºÍksort()
ÈýÕßÖ®¼äÓÐʲô²î±ð£¿Äã·Ö±ðÔÚʲôÇé¿öÏ»áʹÓÃÉÏÃæÈý¸öº¯Êý£¿
3. What would the following code print to the browser? Why?
3¡¢ÏÂÃæÕâ¶Î´úÂ뽫ÔÚä¯ÀÀÆ÷ÉÏ´òÓ¡³öʲôÄÚÈÝ£¿ÎªÊ²Ã´£¿
$num = 10;
function multiply(){
$num = $num * 10;
}
multiply();
echo $num;
4. What is the difference between a reference and a regular variable?
How do you pass by reference & why would you want to?
4¡¢ÒýÓñäÁ¿ÓëÆÕͨ±äÁ¿Ö®¼äÓкÎÇø±ð£¿ÈçºÎͨ¹ýÒýÓô«Öµ£¿ÔÚʲôÇé¿öÏ»áÕâÑù×ö£¿
5. What functions can you use to add library code to the currently
running script?
5¡¢ÄÄЩº¯Êý¿ÉÒÔ±»ÓÃÀ´Ïòµ±Ç°µÄ´úÂëÖÐÌí¼Ó¿â´úÂ룿
6. What is the difference between foo() & @foo()?
6¡¢foo()ºÍ@foo
Ïà¹ØÎĵµ£º
ÏÖÔÚÎÒÃÇ¿ªÊ¼½éÉÜÐÂÎŵÄÁбíºÍɾ³ýÁË¡£
н¨Á¢Ò»¸öÎļþlistnews.php,ÄÚÈÝÈçÏ£º
< ?php
require_once('../inc/config.php');
//°üº¬ÅäÖÃÎļþ
?>
<html>
<head></head>
<title>ÐÂÎŹÜÀí</title>
<body>
<div class="newstitle"></div>
<div class="ne ......
°²×°»·¾³Îªwindows²Ù×÷ϵͳ£¬ÓÉÓÚÎÒͬʱÐèÒªasp+mssql£¨access£©µÄµ÷ÊÔ»·¾³£¬ËùÒÔ¾ÍÔÚwindowsƽ̨ÏÂÔö¼Óapache+php+mysqlµÄµ÷ÊÔ»·¾³£¬Ë«»·¾³Í¬Ê±´æÔÚ£¬·½±ãÎÒËæÊ±Çл»¡£
ApacheµÄ°²×°ÓëÅäÖÃ
´ò¿ªapache¹Ù·½ÍøÕ¾ http://archive.apache.org/dist/httpd/binaries/ ......
×òÌìÍíÉÏÒ»Ö±ÔÚ×ÁÄ¥Flex,Ïëͨ¹ýDataGrid°ÑMySQLÀïÃæµÄÊý¾Ý¸ø¶Á³öÀ´£¬ÆÚ¼ä³öÏÖÁ˼¸¸öСÎÊÌ⣬¼Ç¼ÏÂ~~
1.µÚÒ»´Î½øÐÐÁ¬½ÓÊý¾Ý·þÎñ(Data-Connect to Data/Service-PHP-Browse)ʱ,»á³öÏÖ°²×°Zend FrameWork,Ñ¡Ôñok,²»ÒªÊºóÔÙÈ¥ÍøÕ¾ÏÂÔØZendAMF,Õâ¸öÀïÃæ»áÉÙһЩ¶«Î÷.
2.Data-Bind to DataÊ ......
ÆäʵÕâ¸öµÄÖ÷Òª²¿·Ö²¢²»ÊÇÒ»¸öjquery£¬µ«ÊDZØÐëʹÓõ½
php³ÌÐò²¿·Ö£¬Ò²Ö»ÐèÒªÕâ¸öÒ»¸öphp³ÌÐò¾Í¿ÉÒÔÁË
www.corange.cnÇײâ
<?php
header("Content-Type: text/html; charset=utf-8");
@header( "Cache-Control: no-cache, must-revalidate" );
@header( "Pragma: no-cache" );
@header( "Last-Modified: " ......
PHP4:Ææ¼£±³ºó
1995Äêʱ£¬RasmusÔÚÓÃPHPдËûµÄ¸öÈËÖ÷Ò³£»½ñÌ죬PHP³ÉΪ·çÃÒÈ«ÇòµÄ½Å±¾ÓïÑÔ£¬Ô½À´Ô½¶àµÄÕ¾µãÑ¡ÔñʹÓÃPHP£¬Á¬Yahoo¶¼·ÅÆúÁË×Ô¼ºµÄ½Å±¾¶ø¸ÄÓÃPHPÖ§³ÖËüµÄÍøÕ¾¡£¿ÉÒÔ˵£¬PHPÊÇÒ»¸öÆæ¼£¡£ÎÒÒ»Ö±ÈÏΪ£¬ÈÎºÎÆæ¼£±³ºó¶¼ÓÐËüµÄÔÒò¡£ÏÖÔÚ£¬¾ÍÈÃÎÒÃÇ͸¹ýÕâ¸öÆæ¼££¬À´¿´¿´PHPµÄ³É¹¦Ö®µÀ¡£
1 ¼òµ¥Ò×ÓÃ
PHPµÄÈëÃÅÃż÷ ......