In a working directory where svn status returns:
svn status
$ svn status ? foobar.txt
...this code:
<?php svn_add('foobar.txt');?>
...will schedule foobar.txt for addition into the repository.
foobar.txt