PHP
Consider f ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
Consider following code snippet:
$str = "abсdef";
Select all correct ways to get value "de" for $str2 variable from $str variable.
$str2 = substr($str, 3, 2);
$str2 = substr($str, 2, 2);
$str2 = substr($str, -3, 2);
$str2 = substr($str, -2, -2);
$str2 = substr($str, 3, -1);
Explanation
Get an explanation when it's available:
Subscribe
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
P
HP
Quiz
Login to learn PHP
or
Read more about
PHP Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Keep exploring
PHP quizzes
What is a correct term for the following piece of Python syntax: 3 + 4...
What gets printed: a = b = [1, 2, 3] b[2] = 4 print(a) ...
Is it possible to link a Python program to code written in C?...
What will the output of the following statement be? print "%s is awes...
In a Python 2 new-style class declared as Child(Base), what is the correc...
True or False: Python packages can be imported from inside a Zip file....
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment