Interview Questions → PHP → PHP Questionnaire II

PHP Questionnaire II







<?PHP
class BaseClassOne
{
	public function MyMethodOne()
	{
		echo "MyMethodOne";
	}
}

class BaseClassTwo
{
	public function MyMethodTwo()
	{
		echo "MyMethodTwo";	
	}
}

	

class DerivedClass extends BaseClassOne, BaseClassTwo
{
			
}
	
?>












<?PHP
	$str = "test";

	echo strlen($str);		
	
?>






<?PHP
	$second = date("s");
?>




if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") { 
    echo "https://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
} else { 
    echo "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];;
}




Posted By  -  Karan Gupta


Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250