簡易的なトークン作成 $token = bin2hex(openssl_random_pseudo_bytes(16));
あくまでメモです。情報が古い場合はコメントをください。
簡易的なトークン作成 $token = bin2hex(openssl_random_pseudo_bytes(16));
指定の文字数を超える場合 function asmStringCut($str, $len = 0){ $enc = "utf8"; if ($str && $len &&am…
wordpress 画像のIDからURLを返す function getImage($attachment_id){ if (empty($attachment_id)){ return false; } if ($at…