1. Question:What is object cloning?

     

    Answer
    To remedy the problems with copying, PHP offers an explicit means for cloning an object is known as object cloning. We can clone an object by preprefacing with the clone keyword.

    1. Report
  2. Question: Difference between array_merge() and array_slice()?

     

    Answer
    The array_merge() function merges one ore more arrays into one array. This function returns one array with the elements of all the parameter arrays.

    Syntax is array_merge(array1,array2,array3...)
    The array_slice () function returns a section of an array based on a starting and ending offset value.
    Syntax is array_slice(array,start,length,preserve)


    1. Report
  3. Question:Which functions are used to add and remove array elements? 

    Answer
    There are four functions used to add to and remove from array elements. these are-

    1. array_unshift():function adds element to the front of the array.
    2. array_push(): function adds element to the end of an array.
    3. array_shift(): function removes and returns the first item found in an array.
    4. array_pop():function removes and returns the last element from an array.

    1. Report
  4. Question:What are the four configuration Directive scopes? 

    Answer
    Four configuration directive scopes in PHP are follows as:
     
      PHP_INI_PERDIR
      PHP_INI_SYSTEM
      PHP_INI_USER
      PHP_INI_ALL

    1. Report
  5. Question:What are the benifits of pear? 

    Answer
    1.It's most effective for finding and reusing great PHP code.
    2.Standard development guidlines are assured.
    3.It offers more than 550 pakages catagorized under 37 different topics.

    1. Report
  6. Question:What are the PHP's authentication variable? 

    Answer
    PHP uses two authentication variables as follows:

    1. $_SERVER['PHP-AUTH-USER']
    2. $_SERVER['PHP-AUTH-PW']
    These variables store the username and password values respectively.

    1. Report
  7. Question:What are the benefits of using oop? 

    Answer

    1.Shifts a major paradigm in development strategy.
    2.Shifts the programs procedural events to real life entites.
    3.Refocusing application data rather than it's logic.
    4.It gives the fundamental concept for creating powerful programming model.



    1. Report
  8. Question:What are configuration directives and scopes? Write an example for each scope. 

    Answer
    coming soon..

    1. Report
  9. Question:Write all bitwise operators in term of PHP. 

    Answer
    coming soon...

    1. Report
  10. Question:What is datatype? Write variable scope with an example for each scope. 

    Answer
    coming soon...

    1. Report
Copyright © 2024. Powered by Intellect Software Ltd