What is this method of writing with arrows?
The Empire CMS is a php website written in a process, but I found that there are still statements written with arrows in it. isn't it true that this method with arrows is oriented, why does this arrow appear on the website during the process? does it have another meaning?
Below is the code
While ($ bqr2 = $ empire-> fetch ($ ecms_bq_sql2 ))
{
$ Bqsr2 = sys_ReturnEcmsLoopStext ($ bqr2 );
$ Bqno2 ++;
?>
Reply to discussion (solution)
You print_r ($ empire); can't you see what he is?
Why does this arrow appear on the website during the process?
Metaphysical? This is a bit white or black.
You print_r ($ empire); can't you see what he is?
Why does this arrow appear on the website during the process?
Metaphysical? This is a bit white or black.
The result of my print_r is
Mysqlquery Object ([dblink] => [SQL] => Resource id #75 [query] => [num] => [r] => Array ([0] => 15 [classid] => 15 [1] => 11 [bclassid] => 11 [2] => lumbar disc herniation treatment [classname] => lumbar disc herniation treatment [3] => [sonclass] => [4] => 0 [is_zt] => 0 [5] => 6 [lencord] => 6 [6] => 10 [link_num] => 10 [7] => 18 [newstempid] => 18 [8] => 0 [onclick] => 0 [9] => 16 [listtempid] => 16 [10] => | 7 | 11 | [featherclass] => | 7 | 11 | [11] => 1 [islast] => 1 [12] => jzk/yztc/zl [classpath] => jzk/yztc/zl [13] =>. html [classtype] =>. html [14] => Y-m-d [newspath] => Y-m-d [15] => 0 [filename] => 0 [16] =>. html [filetype] =>. html [17] => 0 [openpl] => 0 [18] => 0 [openadd] => 0 [19] => 10 [newline] => 10 [20] => 10 [hotline] => 10 [21] => 10 [goodline] => 10 [22] => [classurl] => [23] => 0 [groupid] => 0 [24] => 0 [myorder] => 0 [25] => [filename_qz] => [26] => 10 [hotplline] => 10 [27] => 11 [modid] => 11 [28] => 1 [checked] => 1 [29] => 10 [firstline] => 10 [30] => lumbar disc herniation treatment [bname] => lumbar disc herniation treatment [31] => 1 [islist] => 1 [32] => 0 [searchtempid] => 0 [33] => 10 [tid] => 10 [34] => gkbz [tbname] => gkbz [35] => 0 [maxnum] => 0 [36] => 0 [checkpl] => 0 [37] => 2 [down_num] => 2 [38] => 2
I don't know what it means.
$ Empire must be an object.
You print_r ($ empire); can't you see what he is?
Why does this arrow appear on the website during the process?
Metaphysical? This is a bit white or black.
The result of my print_r is
Mysqlquery Object ([dblink] => [SQL] => Resource id #75 [query] => [num] => [r] => Array ([0] => 15 [classid] => 15 [1] => 11 [bclassid] => 11 [2] => lumbar disc herniation treatment [classname] => lumbar disc herniation treatment [3] => [sonclass] => [4] => 0 [is_zt] => 0 [5] => 6 [lencord] => 6 [6] => 10 [link_num] => 10 [7] => 18 [newstempid] => 18 [8] => 0 [onclick] => 0 [9] => 16 [listtempid] => 16 [10] => | 7 | 11 | [featherclass] => | 7 | 11 | [11] => 1 [islast] => 1 [12] => jzk/yztc/zl [classpath] => jzk/yztc/zl [13] =>. html [classtype] =>. html [14] => Y-m-d [newspath] => Y-m-d [15] => 0 [filename] => 0 [16] =>. html [filetype] =>. html [17] => 0 [openpl] => 0 [18] => 0 [openadd] => 0 [19] => 10 [newline] => 10 [20] => 10 [hotline] => 10 [21] => 10 [goodline] => 10 [22] => [classurl] => [23] => 0 [groupid] => 0 [24] => 0 [myorder] => 0 [25] => [filename_qz] => [26] => 10 [hotplline] => 10 [27] => 11 [modid] => 11 [28] => 1 [checked] => 1 [29] => 10 [firstline] => 10 [30] => lumbar disc herniation treatment [bname] => lumbar disc herniation treatment [31] => 1 [islist] => 1 [32] => 0 [searchtempid] => 0 [33] => 10 [tid] => 10 [34] => gkbz [tbname] => gkbz [35] => 0 [maxnum] => 0 [36] => 0 [checkpl] => 0 [37] => 2 [down_num] => 2 [38] => 2
I don't know what it means.
This indicates that $ empire is a result set object queried by the mysql database. This object stores the SQL statement query results.
Mysqlquery Object does not mean
$ Empire is an object derived from mysqlquery
I heard from the QQ group that this is a class, that is, the process also has a class. I cannot understand
If you have used ORM, framework, and so on, you will find that it is too common to use object-oriented calls in process-oriented methods.
Create an object, assign a value, and save it. you can do this:
$ Student = new Student ();
$ Student-> setName = 'Peter ';
$ Student-> setSex = 'M ';
$ EntityManager-> persist ($ student );
$ EntityManager-> flush ();
Object call !!
Let's take a look at the object-oriented knowledge.
Is object-oriented not better?