hi,
im just curious. i witness my friend putting # for comment in php instead of // or /**/ is # an official syntax?
Yes, and it is akin to //
See, for example http://www.php.net/manual/en/language.basic-syntax.comments.php