1. Question:Why substr() is used?

     

    Answer
    The substr () function is used to return the part of a string located between a predefined starting offset and length position.


    1. Report
  2. Question:Why explode() is used?

     

    Answer
    The explode () function is used divides the string into an array of substrings.


    1. Report
  3. 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
  4. 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
  5. 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
  6. 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
  7. Question:34.What are the benefits of using PEAR? 

    Answer
    PHP users have a particularly useful trove of code at their disposal, made available through the PHP Extension and Application Repository, better known as PEAR. 

    1.PEAR taking advantage of this community-driven service will save you countless hours of programming time.
    2.PEAR packages are available for accomplishing everything from creating barcode images,
    compressing files, abstracting database access, documenting code, and much more.

    1. Report
  8. 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
  9. 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
  10. 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
Copyright © 2024. Powered by Intellect Software Ltd