![]() |
sponsored links |
|
|
sponsored links
|
|
1
31st July 15:30
External User
Posts: 1
|
If I define a class in PHP, I don't seem to able to use built-in
functions, like: Class User { var $username = strlen("something"); } The strlen gives a parse error. What will work is: define("USERSOMETHING",strlen("something")); Class User { var $username = USERSOMETHING; } but this is like defining your variables twice, so I want to avoid this. Any ideas? Thanks Cees info@connectcase.nl |
|
|