Course Content

  • 1. this_keyword

Course Content


PHP Keywords are introduced. Keywords are words that have a specific meaning. These words cannot be used as a constant, a variable name, a method name, a class name, or anything else in the PHP language. When these keywords are used, PHP recognises them automatically.

To create a function, use the function keyword.

The PHP strpos() method can be used to determine whether or not a string includes a given word. The strpos() method returns the position of a substring's first appearance in a string. If the substring cannot be retrieved, false is returned. It's also worth noting that string places begin at 0 instead of 

The new keyword is used to construct class objects.

The function Object() { [native code] } is a function called __construct() that is called automatically by the new keyword when the object is created. It is commonly used to conduct various initializations, such as property initializations, automatically.

Recommended Courses

Share With Friend

Have a friend to whom you would want to share this course?

Download LearnVern App

App Preview Image
App QR Code Image
Code Scan or Download the app
Google Play Store
Apple App Store
598K+ Downloads
App Download Section Circle 1
4.57 Avg. Ratings
App Download Section Circle 2
15K+ Reviews
App Download Section Circle 3
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere