Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-14-2006, 12:56 PM   #1
qw12er
Confirmed User
 
Join Date: Apr 2004
Location: Montreal
Posts: 799
:stoned Struct in PHP ?

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.
qw12er is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-14-2006, 01:24 PM   #2
Jmonk
Confirmed User
 
Join Date: May 2004
Posts: 115
1. Why not just use arrays ?
2. You can. Don't close and re-open php blocks between class declarations though (<?php ... ?>).
Jmonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-14-2006, 01:41 PM   #3
Logan Videos
Confirmed User
 
Join Date: Aug 2005
Location: Trailer Park
Posts: 589
Quote:
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.
Logan Videos is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.