PHP †
$xml = simplexml_load_file('hoge.xml');
var_dump($xml);
<?php
$array = array( "array1", "array2", "array3", "array4" );
?>
<?php
$DB_HOST = "localhost";
$DB_USER = "nuzou";
$DB_PASSWORD = "nuzoudb";
$DB_NAME = "nuzou_pw";
function db_connect()
{
global $DB_HOST, $DB_USER, $DB_PASSWORD, $DB_NAME;
$link = mysqli_connect($DB_HOST, $DB_USER, $DB_PASSWORD, $DB_NAME);
return $link;
}
function db_close($link)
{
mysqli_close($link);
}
?>
function utf8_to_sjis($utf8_string) {
return mb_convert_encoding($utf8_string,"SJIS","UTF-8");
}
function sjis_to_utf8($sjis_string) {
return mb_convert_encoding($sjis_string,"UTF-8","SJIS");
}
JavaScript?