What is new keyword in php?



What is new keyword in php?..

Answer / Vibhor Gupta

In PHP 5 and later versions, the 'new' keyword is used to create a new object instance of a class. It's followed by the name of the class. For example: $myObject = new MyClass();

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

Is null function in php?

1 Answers  


Write a select query that will be displayed the duplicated site name and how many times it is duplicated?

1 Answers  


Why laravel is best php framework?

1 Answers  


How do I find environment variables?

1 Answers  


how to change the div background color on every refresh..guys can u help me out.

3 Answers  


How to insert a line break in php string?

1 Answers  


What are php magic quotes?

1 Answers  


What types of MYSQL function available for affecting columns

1 Answers  


What are the difference between abstract class and interface in oops?

1 Answers  


Write down the benefits of php7?

1 Answers  


What are the difference between overloading and overriding in oops?

1 Answers  


How can I retrieve values from one database server and store them in other database server using PHP?

2 Answers   DRC Systems, Photon,


Categories