人気の面接質問と回答・オンラインテスト
面接対策、オンラインテスト、チュートリアル、ライブ練習のための学習プラットフォーム

集中型学習パス、模擬テスト、面接向けコンテンツでスキルを伸ばしましょう。

WithoutBook は、分野別の面接質問、オンライン練習テスト、チュートリアル、比較ガイドをひとつのレスポンシブな学習空間にまとめています。

面接準備

PHP 面接の質問と回答

Test your skills through the online practice test: PHP Quiz Online Practice Test

関連する比較

PHP vs JSP

質問 6. Are objects passed by value or by reference?

Everything is passed by value.

役に立ちましたか? コメントを追加 コメントを見る
 

質問 7. How do you call a constructor for a parent class?

parent::constructor($value)

役に立ちましたか? コメントを追加 コメントを見る
 

質問 8. What's the special meaning of __sleep and __wakeup?

__sleep returns the array of all the variables than need to be saved, while __wakeup retrieves them.

役に立ちましたか? コメントを追加 コメントを見る
 

質問 9. Why doesn't the following code print the newline properly?                 $str = 'Hello, there.nHow are you?
            print $str;
    ?>


Because inside the single quotes the n character is not interpreted as newline, just as a sequence of two characters - and n.

役に立ちましたか? コメントを追加 コメントを見る
 

質問 10. Would you initialize your strings with single quotes or double quotes?

Since the data inside the single-quoted string is not parsed for variable substitution, it's always a better idea speed-wise to initialize a string with single quotes, unless you specifically need variable substitution.

役に立ちましたか? コメントを追加 コメントを見る
 

ユーザー評価で最も役立つ内容:

著作権 © 2026、WithoutBook。