ããã«ã¡ã¯ãBASEæ ªå¼ä¼ç¤¾ ã©ã³ãã³ã°é¨é¨é·ã®å
æ¨ã§ãã
æ¥ã
ã社å¡ã«éåä¸è¶³è§£æ¶ãä¿ãåããOwners Marketingã¨ãããã¼ã ã§ããã¯ã¨ã³ãã¨ã³ã¸ãã¢ããã¦ãã¾ãã
ãã¦ãå¼ç¤¾ã§ã¯ã½ã¼ã¹ã³ã¼ããå¤æ´ããéã«å¿ ãã¡ã³ãã¼éã§ã³ã¼ãã¬ãã¥ã¼ãè¡ãªããOKãåºãã³ã¼ãã ãããããã¤ãããã¨ã«ãªã£ã¦ããã¾ãã
ä»ã§ã¯ã»ã¨ãã©ã®éçºç¾å ´ã§ã³ã¼ãã¬ãã¥ã¼ãåãå ¥ãã¦ããã¨æãã¾ãããèªè ã®ä¸ã«ã¯
ãã¬ãã¥ã¼ã®ã³ã¡ã³ãã£ã¦ãã©ãæ¸ãããããã®ãåãããªãã
ããããªäºãè¨ã£ã¦å«ãªé¡ããããããå§å©ã«ãªããªããå¿é
ã
ãªã©ã¨ãè¦ææèãæã£ã¦ãã人ãããã®ã§ã¯ãªãã§ããããï¼
ããã§ãä»åã¯ç§ãã³ã¼ãã¬ãã¥ã¼ã®éã«æ°ãã¤ãã¦ããã³ã¡ã³ãã®æ¸ãæ¹ããç´¹ä»ãããã¨æãã¾ãã
æ°ãä»ãã¦ãããã¤ã³ãã¨ã¬ãã¥ã¼ã³ã¡ã³ãã®æ¸ãæ¹ã®ä¾
ç§ã¯ãã¬ãã¥ã¼ã§ææäºé
ãã³ã¡ã³ãããéã®ãã¤ã³ãã¯
ãããã«åããããããç´å¾æã®ããã³ã¡ã³ããæ¸ãããã
ã ã¨èãã¦ããã¾ãã
ãã®ããã«ãã³ã¡ã³ãã¯ä»¥ä¸ã®é ã«æ¸ãããã«ãã¦ãã¾ãã
- ã©ã®ããã«ä¿®æ£ãã¦ã»ããã
- ãªãããã®ããã«ä¿®æ£ãã¦ã»ããã®ã
- ã¨ããã³ã¹
ããã§ã¯ã以ä¸ä»®ã®PHPã³ã¼ããä¾ã«é ã追ã£ã¦ã説æãã¾ãã
<?php /** * å¼æ° $phone_number ãé»è©±çªå·ã§ãããã¨ããã§ãã¯ããã * ãã ããå³å¯ãªãã§ãã¯ã¯ããã'-'ãé¤ããå¾ã®æ¡æ°ã¨æ°åã ãã®æååã§ãããã¨ã®ã¿ãã§ãã¯ããã * * @param string $phone_number é»è©±çªå· * @return bool å¼æ° $phone_number ãé»è©±çªå·ãªãã° trueã */ function is_phone_number(string $phone_number): bool { $phone_number = str_replace('-', '', $phone_number); $length = strlen($phone_number); if ($length < 10 || $length > 11) { return false; } return is_numeric($phone_number); }
ãã®ã³ã¼ãã¯å®è£ è ã®æå³éãã«åãã§ããããï¼ çµè«ãè¨ãã¨ããã®ã³ã¼ãã«ã¯ãã°ãããã¾ãããããã³ã¡ã³ãã§ææãã¦ããã¾ãããã
ã¾ãã¯æªãä¾ããã
ãããªã³ã¡ã³ãããã人ã¯ã¾ãããªãã¨æãã¾ãããä¸æãããã°å§å©ã«ãªãããããã¾ããã
ã§ã¯ã次ã¯ã©ãã§ããããï¼
ééã£ããã¨ã¯æ¸ãã¦ãã¾ããã
ãªããããåæã«æ¸ãã¨è¦ªåããªã¨ãããã¾ãã
åããããããªãã¾ããã
ã¨ããã³ã¹ã示ãã®ã¯ã親åå¿ã®ããã ãã§ã¯ããã¾ãããåéããªã©ã«ãããééã£ãææããã¦ãã¾ãã®ãé²ãç®çãããã¾ãã
ãããããããèªãã ã¬ãã¥ã¤ã¼ã¯
ãããããã©ãããã°ããã®ï¼ã
ã¨æ©ãããããã¾ããã
ç¹ã«ã¬ãã¥ã¤ã¼ãæ°äººããã°ã©ãã¼ã ã£ãå ´åã¯ããããªããããã§ãã
ããã§ããã©ã®ããã«ä¿®æ£ãã¦ã»ããããã追è¨ãã¾ãã
ãããªãã¬ãã¥ã¤ã¼ãæ©ãå¿ è¦ããªããªãã¾ããã
æå¾ã«ãä¿®æ£æ¹æ³ãå é ã«ç§»åãã¾ãã
æåã®ä¸æã ãèªãã°çµè«ããããããã«ãªãã¾ããã
æ¥æ¬èªã®æç« ã¨ãã¦ã¯ã¡ãã£ã¨éåæãããããããã¾ãããããã¡ãã®æ¹ãèªã¿æã«åªããæç« ã ã¨æãã¾ãã
ããã«ãçç·´ã®ããã°ã©ãã¼ãªãçµè«ã ãã§
ããããããã
ã¨æ°ã¥ãã¦ãããããããã¾ããã
ãã¡ããããã¹ã¦ã®ã³ã¡ã³ãããã®ããã«æ¸ããã¨ã¯éãã¾ããã
åé¡ããããã¨ã¯åãã£ããã©ä¿®æ£æ¹æ³ãæãã¤ããªããã¨ãããã¾ãããã¨ããã³ã¹ã示ãã®ãé£ããææäºé
ãªã©ãããããã§ãã
ãããã£ãå ´åã¯ç¡çãããæ¸ãããã¨ã ããã³ã¡ã³ãããã¨ããã¨æãã¾ããã
ä»ã®ã¬ãã¥ã¢ã¼ãè£è¶³ãã¦ãããããããã¾ãããã大æµã®å ´åãã¬ãã¥ã¤ã¼ã¯ã³ã¡ã³ããããããã ãã§ååã«ãããããã¨æã£ã¦ãããã¯ãã§ãã
ã³ã¼ãã¬ãã¥ã¼ã¯ã¿ããªã®è³ç£
ã³ã¼ãã¬ãã¥ã¼ã¯ãã¶ã£ããã¼ããªã³ã¡ã³ãã§ãã¨æ®ºä¼ã¨ãããããããªãã®ãå«ã§åå«ã«ãªããã¡ã§ãã
HRTã®ãã¤ã³ãã»ããããäºãã«æã¡ãã³ã¡ã³ãã®æ¸ãæ¹ã工夫ãããã¨ã§ãã¬ãã¥ã¼ãããã/ãããããæåãè²ã¾ããè¯ãã³ã¼ãã¨è¯ããã¼ã ã¸ç¹ãã£ã¦ããã¨æãã¾ãã