GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Struct in PHP ? (https://gfy.com/showthread.php?t=563786)

qw12er 01-14-2006 12:56 PM

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

Jmonk 01-14-2006 01:24 PM

1. Why not just use arrays ?
2. You can. Don't close and re-open php blocks between class declarations though (<?php ... ?>).

Logan Videos 01-14-2006 01:41 PM

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.


All times are GMT -7. The time now is 09:02 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123