ThomasDesigns
So, I have not used PHP for anything you would call 'advanced'. All of my code to date has been pretty basic.
I have been trying to make applications of my own to better learn more advanced things, but it all seems so confusing.
I was bored just now and was looking through the source code of PHPBB 3. Don't worry, I didn't expect to learn anything from just looking. But a couple things did catch my eye.
I was looking at the code and saw a lot of things like this:
In this little snippet, I see a lot I don't understand. I can grasp the gist of it, storing an array in a database, but much of it confuses me.
I see a lot of symbols, or maybe you would call them operators, in there such as '->' '=>' and 'X ? Y : Z'.
I know that => has something to do with multidimensional arrays, but that is the extent of my understanding.
Perhaps someone could point me in the right direction to some tutorials to help me grasp these concepts. I have been through the PHP tuts on W3Schools and can't find much there about this criteria.
I have been trying to make applications of my own to better learn more advanced things, but it all seems so confusing.
I was bored just now and was looking through the source code of PHPBB 3. Don't worry, I didn't expect to learn anything from just looking. But a couple things did catch my eye.
I was looking at the code and saw a lot of things like this:
| Code: |
| if (!$db->sql_affectedrows())
{ $db->sql_return_on_error(true); $sql_ary = array( 'user_id' => (int) $user->data['user_id'], 'topic_id' => (int) $topic_id, 'forum_id' => (int) $forum_id, 'mark_time' => ($post_time) ? (int) $post_time : time(), ); $db->sql_query('INSERT INTO ' . TOPICS_TRACK_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary)); $db->sql_return_on_error(false); } |
In this little snippet, I see a lot I don't understand. I can grasp the gist of it, storing an array in a database, but much of it confuses me.
I see a lot of symbols, or maybe you would call them operators, in there such as '->' '=>' and 'X ? Y : Z'.
I know that => has something to do with multidimensional arrays, but that is the extent of my understanding.
Perhaps someone could point me in the right direction to some tutorials to help me grasp these concepts. I have been through the PHP tuts on W3Schools and can't find much there about this criteria.
