using funcion in the constructor

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
suami
Forum Newbie
Posts: 1
Joined: Tue Nov 18, 2008 6:33 am

using funcion in the constructor

Post by suami »

Hello,

I'm writing a class and I want to use in the constructor a function which i use after in the code.
Can I do that ? and How?

Thanks
suami.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: using funcion in the constructor

Post by pickle »

I'm not sure exactly what you are trying to do. Please explain more.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply