PHP定义结构体的三种方式
1、第一种方式
struct Student { int age; float score; char sex; };
2、第二种方式
struct Student { int age; float score; char sex; }st;
3、第三种方式
struct { int age; float score; char sex; }st;
推荐教程:PHP视频教程
以上就是php怎么定义结构体的详细内容,更多请关注Gxl网其它相关文章!
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did59436