You're looking for a call that's similar to the commandline call
svn info URL
It seems that this is possible using the pysvn library, and there's a recipe that should help you get started. I'm not sure if there's something similar for PHP.
If you need to resort to calling the SVN binary yourself, make sure to use the --xml
parameter to get the result as XML. That should be easier to parse than the commandline output.