Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Forums
Blogs
Articles
Groups
Galleries
Member List
Calendar
Home
Forum
Simply Business
Fucking Around & Business Discussion
Struct in PHP ?
Struct in PHP ?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
qw12er
Confirmed User
Join Date:
Apr 2004
Posts:
799
Share
Post
#1
Struct in PHP ?
01-14-2006, 10:56 AM
Why can't I do a Struct in PHP ?
Why can't I declare 2 classes in the same .php file ? (Works in c++)
Thanks
I have nothing to advertise ... yet.
Jmonk
Confirmed User
Join Date:
May 2004
Posts:
115
Share
Post
#2
01-14-2006, 11:24 AM
1. Why not just use arrays ?
2. You can. Don't close and re-open php blocks between class declarations though (<?php ... ?>).
Comment
Post
Cancel
Logan Videos
Confirmed User
Join Date:
Aug 2005
Posts:
589
Share
Post
#3
01-14-2006, 11:41 AM
Originally posted by
qw12er
Why can't I do a Struct in PHP ?
Why can't I declare 2 classes in the same .php file ? (Works in c++)
Thanks
Theres no struct in PHP, as simple as that. Just make a class and do not add any functions, lol.
And yes, you can declare 2 classes in the same file.
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
😀
😂
🥰
😘
🤢
😎
😞
😡
👍
👎
☕
Comment