What would be the output of the following code? $str = "0011110000bsts11100"; echo trim($str,'010s');
Correct Answer: bst
Explanation:
Note: This Question is unanswered, help us to find answer for this one
PHP Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More PHP MCQ Questions
Output of the following code? $var1='/'; $var2='/&%#!'; echo (strpos($var1, $var2)? 'Found' : 'Not found');
Correct option to force redirect from http to https:
Correct option to get a numerically indexed array containing all defined timezone identifiers in PHP?
What would be the output of the I and II sample codes: I) $a = array(); $b = $a; $b['foo'] = 42; echo $a['foo']; II) $a = new StdClass(); $b = $a; $b->foo = 42; echo $a->foo;
Which will decode a JSON variable $json to an object? $json = '{'abc':1,'def':2,'ghi':3,'jkl':4,'mno':5}';
Valid PHP function modifier?
Choose the statement which produces this output: This is an example.
Which language construct allows you to combine code from one file into another?
Variables in PHP start with a
What are int, float, string and boolean examples of in PHP?