1. Question:What are the general language features of php? 

    Answer
    Practicality: It requires minimum  knowledge of programming.Power: It has the ability to interface with databases, form and create pages dynamically.Possibility: Developers are rarely bound to any single implementation solution.Price: It is open source software.

    1. Report
  2. Question:What are the encryption techniques in PHP? 

    Answer
    PHP implements the MD5 hash algorithm using the md5() function,
    eg : $encrypted_text = md5 ('password');

    1. Report
  3. Question:What is the use of "enctype" attribute in a html form? 

    Answer
    The enctype attribute determines how the form-data should be encoded when submitting it to the server. We need to set enctype as "multipart/form-data" when we are using a form for uploading files

    1. Report
  4. Question:Which functions are used to add file in a script? 

    Answer
    Thare are two functions are used to add file in a script
    1.The include()function
    2.The require() function

    1. Report
  5. Question:

    What are passing arguments by reference and passing arguments by value?

     

    Answer

    passing arguments by value:Means any changes made to those values within the scope of the function are ignored outside of the function.

    passing arguments by reference:Means any changes made to those values within the scope of the function are reflected outside of the function.


    1. Report
  6. Question:What is the difference between Session and Cookie? 

    Answer
    The main difference between sessions and cookies is that sessions are stored on the server, and cookies are stored on the user’s computers in the text file format. Cookies can not hold multiple variables,But Session can hold multiple variables.We can set expiry for a cookie,The session only remains active as long as the browser is open.Users do not have access to the data you stored in Session,Since it is stored in the server.Session is mainly used for login/logout purpose while cookies using for user activity tracking

    1. Report
  7. Question:What are the types of key of array? 

    Answer

    There are two types of key of array. It can be numerical And associative.

    Numerical :It stores each array element with numeric index name.

    associative : It contains characteristic element or string index name.


    1. Report
  8. Question:

    What are class and object?

     

    Answer

    Class:Classes are intended to represent those real-life items that coder like to manipulate within an application.

    object: An instance of class is called object.


    1. Report
  9. Question:What is property overloading? 

    Answer
    Property overloading continues to protect properties by forcing access and manipulation through public methods, yet allowing the data to be accessed as if it were a public property.

    1. Report
  10. Question:What should we do to be able to export data into an Excel file? 

    Answer
    The most common and used way is to get data into a format supported by Excel. For example, it is possible to write a .csv file, to choose for example comma as separator between fields and then to open the file with Excel.

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