Blog.okuryu
興味深いのでとりあえずカンニングなしで答えてみる。
Do You PHP はてな - Yahoo!がPHPエンジニアを雇う時に聞く質問
2. array_add なんて関数はたぶんないはず。
ひー。このへん記憶してません。マニュアル見ればいいんだよ!
$num = 10;
function multiply(){
$num = $num * 10;
}
multiply();
echo $num;10かな。
&$ ってことくらいしか分かりません!
include_once とか require_once とかのこと?
@ をつけると関数 foo が失敗してもエラーを吐かなくなる。
print_r とか var_dump とかで結構やっていける。
$foo = 1;
$bar = '1';
if ($foo == $bar) {
// true
}
if ($foo === $bar) {
// false
}class myclass {...} でいいの?
$c = new myclass();
$c = new myclass();
$foo = $c->foo;
$c->foo = $bar;include_once は1度しか読み込まない。include で読み込みに失敗してもプログラムは止まらないけど、require で失敗すると止まる。
2.
mysql_fetch_row は MySQL からの結果を添字配列として返し、mysql_fetch_array は添字配列と連想配列の両方を返す。
$date = ’08/26/2003’;
print ereg_replace(“([0-9]+)/([0-9]+)/([0-9]+)”,¥¥2/¥¥1/¥¥3,$date);日と月を入れ替えてるだけ。26/08/2003 になる。
うーん。strip_tags() じゃだめ?
PHP はどっちも array() で。Perl だと配列が @ でハッシュ % だっけ。
ステートレスが分からん。
動的に画像を生成したり。
コードブロックってなに。
どうでもいいです。
さて、エロい人模範解答お願いします。
このエントリーのトラックバックURL:
http://www.okuryu.com/mt/mt-tb.cgi/228
» buy adderall without a prescription
From: buy adderall without a prescription | 2008-01-06T09:47:05+09:00
Rirath | 2008-04-07T05:36:34+09:00
There are many ways to express yourself in real word. I don’t see the reason why all those websites are still popular
MARGOMAR | 2008-04-09T18:41:24+09:00
Well I’m confused. I don’t know what’s the problem here. What’s wrong. At first I thought it looked really smart, but I’m not sure any more