1

Can someone explain how this line of PHP works:

new Activation\Activate;

I can see an Activation/Activate.php file.

Is the backslash a new PHP construct or does it simply mean to load the Activation/Activate.php file but is confusing me 'cos I'm on a Mac (i.e. I'm expecting a forward slash)?

Snowcrash
  • 80,579
  • 89
  • 266
  • 376
  • It's just a simple instanciation of a class. And the `\ ` is just a namespace -> http://php.net/manual/en/language.namespaces.php – Rizier123 May 26 '15 at 21:45

1 Answers1

2

This means using a namespace

More about PHP namespaces: https://php.net/manual/en/language.namespaces.php

borisano
  • 1,270
  • 1
  • 16
  • 28