PHP 面接の質問と回答
Test your skills through the online practice test: PHP Quiz Online Practice Test
関連する比較
質問 21. What does a special set of tags <?= and ?> do in PHP?
The output is displayed directly to the browser.
役に立ちましたか?
コメントを追加
コメントを見る
質問 22. What's the difference between include and require? -
It's how they handle failures. If the file is not found by require(), it will cause a fatal error and halt the execution of the script. If the file is not found by include(), a warning will be issued, but execution will continue.
役に立ちましたか?
コメントを追加
コメントを見る
質問 23. I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what's the problem?
PHP Interpreter treats numbers beginning with 0 as octal.
役に立ちましたか?
コメントを追加
コメントを見る
質問 24. Would I use print "$a dollars" or "{$a} dollars" to print out the amount of dollars in this example?
In this example it wouldn't matter, since the variable is all by itself, but if you were to print something like "{$a},000,000 mln dollars", then you definitely need to use the braces.
役に立ちましたか?
コメントを追加
コメントを見る
質問 25. How do you define a constant?
Via define() directive, like define ("MYCONSTANT", 100);
役に立ちましたか?
コメントを追加
コメントを見る
ユーザー評価で最も役立つ内容:
- What does a special set of tags <?= and ?> do in PHP?
- What's the difference between include and require? -
- I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what's the problem?
- How do you define a constant?
- Would I use print "$a dollars" or "{$a} dollars" to print out the amount of dollars in this example?