1) What is the php tag a) <php> </php> b) <php ... /> c) <?php ?> 2) How do you echo something in PHP a) echo["Hello World"] b) echo "Hello World" c) echo Hello World d) echo "Hello World"; 3) How do you concatenate a string? a) echo "Hello" .$var. "World"; b) echo "Hello" + $var + "World"; c) echo "Hello" plus $var plus "World"; d) echo concatenate("Hello" .$var. "World"); 4) What does PHP stand for a) Probably Hyped Programming b) PHP: HyperText Processor c) Print Hard Programs 5) What is the PHP logo a) b) c) 6) What is the difference between $_GET and $_POST a) It is the same b) IDK lol c) $_GET is used for a form with an method of $_POST, and $_POST is used for a form with an method of $_GET d) $_GET is used for a form with an method of $_GET, and $_POST is used for a form with an method of $_POST 7) Is PHP safe? a) Yes it is completely b) Not at all in any way c) Yes, provided you use PDO for SQL queries 8) What does htmlspecialchars() do? a) It creates random HTML characters b) It encodes special HTML special characters, instead of actually "executing the HTML code" c) It makes the HTML feel better than CSS and JavaScript 9) Can you use PHP with SQL a) Yep b) No c) WDYM??? d) IDK 10) Does htmlspecialchars() prevent SQL injection attacks? a) No, it doesn't. It isn't effective against SQL attacks. Using prepared statements is better b) Yes, It does, because it converts special characters, right?
0%
PHP
共用
共用
共用
由
26gurudathmanus
CS
編輯內容
列印
嵌入
更多
作業
排行榜
顯示更多
顯示更少
此排行榜當前是私有的。單擊
共用
使其公開。
資源擁有者已禁用此排行榜。
此排行榜被禁用,因為您的選項與資源擁有者不同。
還原選項
飛機遊戲
是一個開放式範本。它不會為排行榜生成分數。
需要登錄
視覺風格
字體
需要訂閱
選項
切換範本
顯示所有
播放活動時將顯示更多格式。
打開結果
複製連結
QR 代碼
刪除
恢復自動保存:
?