Which function do you apply to the text, when displaying it?

You want to allow your users to submit HTML code in a form, which will then be displayed as realcode and not affect your site layout. Which function do you apply to the text, when displaying it?(Choose 2) A.strip_tags() B.htmlentities() C.htmltidy() D.htmlspecialchars() E.showhtml() Show Answer

Read More

What will be the result of the following operation?

What will be the result of the following operation?<code>array_combine(array(“A”,”B”,”C”), array(1,2,3));</code> A.array(“A”,”B”,C”,1,2,3) B.array(1,2,3,”A”,”B”,C”) C.array(“A”=>1,”B”=>2,”C”=>3) D.array(1=>”A”,2=>”B”,3=>”C”) E.array(1,2,3) Show Answer

Read More

What would you do?

You’d like to use the class MyDBConnection that’s defined in theMyGreatFrarneworkGreafDatabaseAbstractionLayer namespace, but you want to minimize *asmuch as possible* the length of the class name you have to type. What would you do? A.Import the MyGreatFramework namespace B.Import the MyGreatFrarneworkGreafDatabaseAbstractionLayer namespace C.Alias MyGreatFrarneworkGreafDatabaseAbstractionLayerMyDBConnection to a shorter name D.Alias MyGreatFrarneworkGreafDatabaseAbstractionLayer to a shorter name Explanation:This […]

Read More