string addslashes ( string $str );
string implode ( string $glue, array $pieces );
array explode ( string $separator, string $string [, int $limit] );
array split ( string $pattern, string $string [, int $limit] );
array spliti ( string $pattern, string $string [, int $limit] );
string chunk_split ( string $body [, int $chunklen [, string $end]] );
array str_split ( string $string [, int $split_length] );
string wordwrap ( string $str [, int $width [, string $break [, bool $cut]]] );
string nl2br ( string $string );
int substr_count ( string $haystack, string $needle [, int $offset [, int $length]] );
string substr ( string $string, int $start [, int $length] );
string base64_encode ( string $data );
string base64_decode ( string $encoded_data );
array get_meta_tags ( string $filename [, bool $use_include_path] );
string http_build_query ( array $formdata [, string $numeric_prefix] );
array parse_url ( string $url );
string urlencode ( string $str );
string urldecode ( string $str );
string rawurlencode ( string $str );
string rawurldecode ( string $str );
void var_dump ( mixed $expression [, mixed $expression [, $…]] );
bool print_r ( mixed $expression [, bool $return] );
mixed var_export ( mixed $expression [, bool $return] );
ob_start();
ob_end_flush();
ob_end_clean();
ob_get_flush();
ob_get_contents();
string gettype( mixed $var );
string htmlentities ( string $string [, int $quote_style [, string $charset [, bool $double_encode]]] )
string html_entity_decode ( string $string [, int $quote_style [, string $charset]] );
string htmlspecialchars ( string $string [, int $quote_style [, string $charset [, bool $double_encode]]] );
string htmlspecialchars_decode ( string $string [, int $quote_style] );
mixed str_replace ( mixed $search, mixed $replace, mixed $subject [, int &$count] ); // " " => <?php
// define some variables
$local_file = ‘local.zip’;
$server_file = ‘server.zip’;
// connect to the FTP server
$conn_id = ftp_connect($ftp_server);
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
// try to download
if (ftp_get($conn_id, $local_file, $server_file, FTP_BINARY)) {
echo "Successfully written to $local_filen";
} else {
echo "There was a problemn";
}
// close the connection
ftp_close($conn_id);
?>