好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

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;
   char sex;
}st; 

推荐教程:PHP视频教程

以上就是php怎么定义结构体的详细内容,更多请关注Gxl网其它相关文章!

查看更多关于php怎么定义结构体的详细内容...

  阅读:47次

上一篇: php怎么安装教程

下一篇:php怎么传递参数