Some questions on php
Posted: Thu Jul 21, 2011 3:10 am
Hi, I'm new in php, came across piece of code which I leaves me scratching my head:
A number of questions here:
1) What is the "->" operator? I can't find any reference to it except that it is used in Perl.
2) Is this statement querying the database? Why not use the standard php statements for querying the database?
My apologizes if my questions sounds basic. Thanks in advance for the help!
Code: Select all
$dbi->query($sql_line)1) What is the "->" operator? I can't find any reference to it except that it is used in Perl.
2) Is this statement querying the database? Why not use the standard php statements for querying the database?
My apologizes if my questions sounds basic. Thanks in advance for the help!