PHP

PHP

In-Built Functions in PHP has 9 Questions

Which one of the following PHP functions can be used to build a function that accepts any number of arguments?

func_get_argv()
func_get_argc()
get_argv()
get_argc()
Which one of the following PHP functions can be used to find files?

glob()
file()
fold()
get_file()
Which of the following PHP functions can be used to get the current memory usage?

get_usage()
get_peak_usage()
get_memory_usage()
get_memory_peak_usage()
Which of the following PHP functions can be used for generating unique id's?

uniqueid()
id()
md5()
mdid()
Which one of the following functions can be used to compress a string?

zip_compress()
zip()
compress()
gzcompress()
What will be the output of the following PHP code?
  1.     <?php
  2.     echo ord ("hi");
  3.     ?>

106
103
104
209
What will be the output of the following PHP code?
  1.     <?php
  2.     $str = "Hello World"
  3.     echo wordwrap($str,5,"<br>\n");    
  4.     ?>

Hello World

Hello

World

Hell o wo rld
World
What will be the output of the following PHP code?
  1.     <?php
  2.     echo ucwords("i love my country");
  3.     ?>

I love my country
i love my Country
I love my Country
I Love My Country
What will be the output of the following PHP code?
  1.     <?php
  2.     echo lcfirst("welcome to Astiwz");
  3.     ?>

welcome to Astiwz
welcome to astiwz
Welcome to Astiwz
Welcome to astiwz