Skip to content

Instantly share code, notes, and snippets.

View ron623's full-sized avatar

h.shino ron623

  • jp
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset ="UTF-8">
<title>ポストデータのテスト</title>
</head>
<body>
<h5>
@ron623
ron623 / health
Last active January 20, 2023 19:33
health
package health;
import java.awt.EventQueue;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
<?php
// htmlspecialchars関数を呼び出す用の関数
function e(string $str, string $charset = 'UTF-8'): string {
return htmlspecialchars($str, ENT_QUOTES | ENT_HTML5, $charset);
}
<!DOCTYPE html>
<head>
<meta charset = "UTF-8">
<title>てすと</title>
</head>
<h5>
<body>
<?php
<!DOCTYPE html>
<html>
<head>
<meta charset ="UTF-8"/>
<title>Title_sample</title>
</head>
</body>
<p>{$message}</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset ="UTF-8"/>
<title>Smarty</title>
</head>
</body>
<p>{$message}</p>
</body>
</html>
// テンプレートエンジンの利用(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');
@ron623
ron623 / ruby helloworld
Created May 6, 2016 03:30
ruby helloworld
puts "Hello World"
' ★★★ 値渡しの例 その2★★★
Sub Sample_Val_2()
Dim str As String
str = "もとの文字です(*`▽´*)"
' 値渡しで関数を呼び出す
str = CallByVal_2(str)
' ★★★ 値渡しの例 ★★★
Sub Sample_Val()
Dim str As String
str = "もとの文字です(*`▽´*)"
' 値渡しで関数を呼び出す
Call CallByVal(str)