Actually, php does not have pointers, it uses references (humor).
The PEAR (pear.php.net) classes are delivered with php. I don't really care for the way the base pear class was implemented but there is some good stuff in there. Learn to use their PEAR DB class to access databases and move on from there.