This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// htmlspecialchars関数を呼び出す用の関数 | |
function e(string $str, string $charset = 'UTF-8'): string { | |
return htmlspecialchars($str, ENT_QUOTES | ENT_HTML5, $charset); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<meta charset = "UTF-8"> | |
<title>てすと</title> | |
</head> | |
<h5> | |
<body> | |
<?php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset ="UTF-8"> | |
<title>ポストデータのテスト</title> | |
</head> | |
<body> | |
<h5> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset ="UTF-8"/> | |
<title>Title_sample</title> | |
</head> | |
</body> | |
<p>{$message}</p> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset ="UTF-8"/> | |
<title>Smarty</title> | |
</head> | |
</body> | |
<p>{$message}</p> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// テンプレートエンジンの利用(smarty) | |
require_once 'C:\xampp\htdocs\practice\vendor\autoload.php';$s= new Smarty(); | |
$s->template_dir= './templates/'; | |
$s->compile_dir='.templates_c/'; | |
$s->assign('message','サンプルメッセージ'); | |
$s->display('smarty_basic.tpl'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' ★★★ 値渡しの例 その2★★★ | |
Sub Sample_Val_2() | |
Dim str As String | |
str = "もとの文字です(*`▽´*)" | |
' 値渡しで関数を呼び出す | |
str = CallByVal_2(str) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' ★★★ 値渡しの例 ★★★ | |
Sub Sample_Val() | |
Dim str As String | |
str = "もとの文字です(*`▽´*)" | |
' 値渡しで関数を呼び出す | |
Call CallByVal(str) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
★★★ 参照渡しの例 ★★★ | |
Sub Sample_Ref() | |
Dim str As String | |
str = "もとの文字です(*`▽´*)" | |
' 参照渡しで関数を呼び出す | |
Call CallByRef(str) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dateAndCalendar; | |
import java.io.IOException; | |
import java.nio.file.FileSystem; | |
import java.nio.file.FileSystems; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.nio.file.StandardCopyOption; | |
public class CreateDate { |
NewerOlder