时间:2021-07-01 10:21:17 帮助过:46人阅读

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网其它相关文章!