PHP doesn't ship with an ftp class or namespace, but you can compile PHP with the --enable-ftp flag to use the ftp extension functions.