Jump to content

[SOLVED] Last Question, About Classes!


Lamez

Recommended Posts

I have something like this

 

<?php
class Session
{
//other junk
}
?>

 

can I put a regular string under class Session? Like so:

<?php
class Session
{
  $salt = "poopscooper1";
//other junk
}
?>

 

If not, where should I put it so it can be defined all through out the class?

 

Link to comment
https://forums.phpfreaks.com/topic/128923-solved-last-question-about-classes/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.