HalaKuwatly
HalaKuwatly

Reputation: 179

Splitting Code into Headers/Source files in PHP

In C++, each class has a .h file and a .cpp file, is that possible in PHP?

The reason i want this for, is that when i give my class file to another person to use it I dont want him to view my source code,

I just want him to use the class without viewing the source.

Upvotes: 2

Views: 134

Answers (1)

deceze
deceze

Reputation: 522076

No, PHP doesn't have an equivalent of header files. You may want something like http://www.ioncube.com or http://www.zend.com/en/products/guard/.

Really ask yourself why you're doing this before going down this route though.

Upvotes: 5

Related Questions