Via de voorbeelden van menselijke vertaling trachten te leren vertalen.
Van professionele vertalers, bedrijven, webpagina's en gratis beschikbare vertaalbronnen.
예 2. array_map() - using more arrays
?php function show_spanish( $n, $m) {return "the number $n is called $m in spanish";} function map_spanish($n, $m) {return array ($n = $m);} $a = array(1, 2, 3, 4, 5); $b = array("uno", "dos", "tres", "cuatro", "cinco"); $c = array_map("show_spanish", $a, $b); print_r($c); $d = array_map("map_spanish", $a, $b); print_r($d);?
예 1. using backreferences followed by numeric literals.
?php $str = "april 15, 2003"; $pattern =" / (\w+) (\d+), (\d+) / i"; $replacement = "\${1}1,\$3"; print preg_replace($pattern, $replacement, $string); / * output ====== april1,2003 * /?
you can also return the variable representation by using true as second parameter to this function.
pre ?php $a = array (1, 2, array ("a", "b", "c")); var_export ($a); / * output: array (0 = 1, 1 = 2, 2 = array (0 = 'a', 1 = 'b', 2 = 'c',),) * / $b = 3.1; $v = var_export($b, true); echo $v; / * output:
decrypts the s/mime encrypted message contained in the file specified by infilename using the certificate and it's associated private key specified by recipcert and recipkey.
decrypts the s / mime encrypted message contained in the file specified by infilename using the certificate and it 's associated private key specified by recipcert and recipkey.