php怎么定义结构体
来源:动视网
责编:小采
时间:2020-11-27 14:46:47
php怎么定义结构体
php怎么定义结构体: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;
导读php怎么定义结构体: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;

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怎么定义结构体
php怎么定义结构体: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;