| 1 comments ]

1 Which functions would be needed to translate the following string:

I love PHP 5

to the following?

5 PHP EVOL I

mirror()
strtoupper()
toupper()
str_reverse()
strrev()

2 What is the output of the following code block?


<?php

$array = array(1 => 0, 2, 3, 4);

array_splice($array, 3, count($array), array_merge(array('x'), array_slice($array, 3)));

print_r($array);

?>

3 Given the following array:

$array = array(1,1,2,3,4,4,5,6,6,6,6,3,2,2,2);

4 The fastest way to determine the total number a particular value appears in the array is to use which function?

array_total_values
array_count_values
A foreach loop
count
a for loop


Please answer through the comments I will make it publish on blog..............

1 comments

Unknown said... @ Monday, August 3, 2009 at 8:46:00 AM GMT+1
This comment has been removed by a blog administrator.

Post a Comment

Please put your comments here. your questions, your suggestions, also what went wrong with me.