{"id":30291,"date":"2023-08-11T22:28:03","date_gmt":"2023-03-21T17:53:40","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%95%b4%e7%90%86php%e7%9a%84%e5%ad%a6%e4%b9%a0%e5%86%85%e5%ae%b9\/"},"modified":"2025-08-12T18:29:19","modified_gmt":"2025-08-12T10:29:19","slug":"%e6%95%b4%e7%90%86php%e7%9a%84%e5%ad%a6%e4%b9%a0%e5%86%85%e5%ae%b9","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%95%b4%e7%90%86php%e7%9a%84%e5%ad%a6%e4%b9%a0%e5%86%85%e5%ae%b9\/","title":{"rendered":"\u6574\u7406PHP\u7684\u5b66\u4e60\u5185\u5bb9"},"content":{"rendered":"<p>\u56e0\u4e3a\u5f00\u59cb\u5b66\u4e60PHP\uff0c\u6240\u4ee5\u9996\u5148\u6211\u4f1a\u603b\u7ed3\u5728\u5728\u7ebf\u8bfe\u7a0b\u4e2d\u5b66\u5230\u7684\u77e5\u8bc6\u3002<br \/>\n\u5728\u8fd9\u95e8\u8bfe\u7a0b\u4e2d\uff0c\u901a\u8fc7\u4f7f\u7528WordPress\u521b\u5efa\u535a\u5ba2\u6765\u5b66\u4e60PHP\u662f\u4e3b\u8981\u5185\u5bb9\u3002<\/p>\n<h2>\u76ee\u6b21<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30ab\u30ea\u30ad\u30e5\u30e9\u30e0\u3067\u5b66\u3093\u3060\u3053\u3068\u4e00\u89a7<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">SL\u30b9\u30bf\u30b8\u30aa\u3067\u5b66\u7fd2\u3057\u3066\u88dc\u5145\u3057\u305f\u77e5\u8b58<\/ul>\n<\/li>\n<\/ul>\n<p>\u8ab2\u984c<\/p>\n<h2>\u5b66\u4e60\u8bfe\u7a0b\u6240\u83b7\u53d6\u7684\u77e5\u8bc6\u6e05\u5355\u4e3a\u4e86\u5728\u7a0d\u540e\u67e5\u9605\u65f6\u80fd\u50cf\u7d22\u5f15\u4e00\u6837\u4f7f\u7528\uff0c\u6211\u4f1a\u5c06\u53c2\u8003\u7f51\u7ad9\u4e0e\u4e00\u89c8\u8868\u4e00\u8d77\u5217\u51fa\u6765\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Mac\uff1a\u30bf\u30fc\u30df\u30ca\u30eb\u3001Windows\uff1a\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u3064\u3044\u3066<\/ul>\n<\/li>\n<\/ul>\n<p>Mac\uff1a\u30bf\u30fc\u30df\u30ca\u30eb\u3001Windows\uff1a\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u306e\u57fa\u672c\u7684\u306a\u30b3\u30de\u30f3\u30c9<\/p>\n<p>Mac\uff1a\u30bf\u30fc\u30df\u30ca\u30eb\u3001Windows\uff1a\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3067PHP\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3059\u308b<\/p>\n<p>PHP\u306e\u8a18\u8ff0\u65b9\u6cd5<br \/>\nhttps:\/\/www.modis.co.jp\/candidate\/insight\/column_40<\/p>\n<p>PHP.ini\u30d5\u30a1\u30a4\u30eb\u306e\u8a2d\u5b9a<br \/>\nhttps:\/\/www.tairaengineer-note.com\/how-to-check-php-ini\/<\/p>\n<p>\u5909\u6570\u306b\u3064\u3044\u3066<\/p>\n<p>\u5909\u6570\u3068\u306f<\/p>\n<p>\u5909\u6570\u306b\u540d\u524d\u3092\u4ed8\u3051\u308b\u30eb\u30fc\u30eb<\/p>\n<p>\u5909\u6570\u306e\u4ee3\u5165<\/p>\n<p>\u30c7\u30fc\u30bf\u578b<\/p>\n<p>\u30b9\u30ab\u30e9\u30fc\u578b\uff1a\u8ad6\u7406\u578b\u3001\u6574\u6570\u578b\u3001\u6d6e\u52d5\u5c0f\u6570\u70b9\u578b\u3001\u6587\u5b57\u5217\u578b<\/p>\n<p>\u6f14\u7b97\u5b50\u306e\u4f7f\u3044\u65b9\uff1a\u4ee3\u6570\u6f14\u7b97\u5b50\u3001\u52a0\u7b97\u5b50\/\u6e1b\u7b97\u5b50\u3001\u6587\u5b57\u5217\u6f14\u7b97\u5b50\u3001\u4ee3\u5165\u6f14\u7b97\u5b50\u3001\u6bd4\u8f03\u6f14\u7b97\u5b50<\/p>\n<p>\u914d\u5217<\/p>\n<p>\u30ad\u30fc\u3084\u8981\u7d20\u306e\u6570\u3092\u53d6\u5f97\u3059\u308b<\/p>\n<p>\u914d\u5217\u3092\u8ffd\u52a0\u3059\u308b<\/p>\n<p>\u914d\u5217\u306e\u5024\u3092\u5909\u66f4\u3059\u308b<\/p>\n<p>\u914d\u5217\u306e\u5165\u308c\u66ff\u3048<\/p>\n<p>\u914d\u5217\u306e\u30ad\u30fc\u3092\u524a\u9664\u3059\u308b<\/p>\n<p>while\u6587\u3068\u306f<\/p>\n<p>\u6761\u4ef6\u5f0f\u306e\u66f8\u304d\u65b9<\/p>\n<p>while\u6587\u306b\u304a\u3051\u308bbreake<\/p>\n<p>while\u6587\u306b\u304a\u3051\u308bcontinue<\/p>\n<p>while\u6587\u306e\u7121\u9650\u30eb\u30fc\u30d7<\/p>\n<p>for\u6587\u3068\u306f<\/p>\n<p>\u6761\u4ef6\u5f0f\u306e\u66f8\u304d\u65b9<\/p>\n<p>for\u6587\u306e\u5165\u308c\u5b50\u3067\u9ad8\u3044\u5c64\u306b\u3057\u305f\u30eb\u30fc\u30d7<\/p>\n<p>for\u6587\u306b\u304a\u3051\u308bbreak\u3068continue<\/p>\n<p>\u6761\u4ef6\u5206\u5c90\u3068\u306f<\/p>\n<p>if\u6587\u306e\u4f7f\u3044\u65b9<\/p>\n<p>if\u6587\u306b\u304a\u3051\u308belse\u3001elseif\u306e\u4f7f\u3044\u65b9<\/p>\n<p>\u8ad6\u7406\u6f14\u7b97\u5b50\uff1aand\u3001or<\/p>\n<p>\u9023\u60f3\u914d\u5217\u3068\u306f<\/p>\n<p>\u9023\u60f3\u914d\u5217\u306e\u521d\u671f\u5316<\/p>\n<p>\u9023\u60f3\u914d\u5217\u306e\u8ffd\u52a0\u3001\u7d50\u5408<\/p>\n<p>wordpress\u30d6\u30ed\u30b0\u4f5c\u6210\u3068PHP<\/p>\n<p>\u30c6\u30fc\u30de\u306e\u5909\u66f4\u65b9\u6cd5<\/p>\n<p>\u81ea\u52d5\u30a4\u30f3\u30c7\u30f3\u30c8\u306e\u30b3\u30de\u30f3\u30c9<br \/>\n\uff0d&#8221;Shift&#8221;\uff0b&#8221;Alt&#8221;\uff0b&#8221;F&#8221;\u3092\u62bc\u3059\u3068\u81ea\u52d5\u3067\u30a4\u30f3\u30c7\u30f3\u30c8\u304c\u3064\u304f\u3002<br \/>\n\u305f\u3060\u3057\u3001PHP\u30d5\u30a9\u30fc\u30de\u30c3\u30bf\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u2190\u30d7\u30e9\u30b0\u30a4\u30f3\u300cPHP Intelephense\u300d\u306a\u3069\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30bf\u30b0\u304c\u30a8\u30e9\u30fc\u8868\u793a\u306b\u306a\u308b\u305f\u3081\u3001\u8a2d\u5b9a\u3092\u5909\u3048\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002(Windows\u306e\u5834\u5408)\u30d5\u30a1\u30a4\u30eb\uff1e\u30e6\u30fc\u30b6\u30fc\u8a2d\u5b9a\uff1e\u8a2d\u5b9a\uff1e\u300cundefined functions\u300d\u3092\u691c\u7d22\u3057\u3066\u3001\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3092\u5916\u3059\u21d2\u30a8\u30e9\u30fc\u304c\u51fa\u306a\u304f\u306a\u308b\u3002<\/p>\n<p>\u30c6\u30fc\u30de\u306e\u5909\u66f4\u65b9\u6cd5<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"U6TFwxhW8e\"><p><a href=\"https:\/\/lucy.ne.jp\/bazubu\/how-to-change-wp-theme-23116.html\">WordPress\u306e\u30c6\u30fc\u30de\u3092\u5909\u66f4\u3059\u308b\u65b9\u6cd5\u3068\u5909\u66f4\u524d\u5f8c\u306b\u3084\u308b\u3079\u304d\u4e8b<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;WordPress\u306e\u30c6\u30fc\u30de\u3092\u5909\u66f4\u3059\u308b\u65b9\u6cd5\u3068\u5909\u66f4\u524d\u5f8c\u306b\u3084\u308b\u3079\u304d\u4e8b&#8221; &#8212; \u30d0\u30ba\u90e8\" src=\"https:\/\/lucy.ne.jp\/bazubu\/how-to-change-wp-theme-23116.html\/embed#?secret=UuaUGliUX2#?secret=U6TFwxhW8e\" data-secret=\"U6TFwxhW8e\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u968e\u5c64\u3068\u306f<br \/>\nhttps:\/\/wp-exp.com\/blog\/template-hierarchy\/<\/p>\n<p>\u30d7\u30e9\u30b0\u30a4\u30f3\u300cQuery Monitor\u300d\u3092\u4f7f\u3063\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d\u3059\u308b<\/p>\n<p>\u30aa\u30ea\u30b8\u30ca\u30eb\u30c6\u30fc\u30de\u306e\u6700\u5c0f\u69cb\u6210<br \/>\nhttps:\/\/webst8.com\/blog\/wordpress-theme-howto-make\/<\/p>\n<p>\u5b50\u30c6\u30fc\u30de\u306e\u4f5c\u6210<br \/>\nhttps:\/\/www.conoha.jp\/lets-wp\/wp-childtheme\/<br \/>\nhttps:\/\/miya-system-works.com\/blog\/detail\/152<\/p>\n<p>\u30d9\u30fc\u30b9\u30c6\u30fc\u30de\u300cClean Blog\u300d\u3092\u4f7f\u3063\u3066\u30aa\u30ea\u30b8\u30ca\u30eb\u30d6\u30ed\u30b0\u3092\u4f5c\u6210\u3059\u308b<\/p>\n<p>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30bf\u30b0\u3068\u306f<br \/>\nhttps:\/\/digitor.jp\/textbook\/template-tag\/<\/p>\n<p>\u8a18\u4e8b\u306e\u30bf\u30a4\u30c8\u30eb\u3092\u8868\u793a\u3059\u308b\uff0d<!--?php the_title();?--><br \/>\nhttps:\/\/deep-blog.jp\/engineer\/15060\/#:~:text=%E6%8A%95%E7%A8%BF%E8%A8%98%E4%BA%8B%E3%81%AE%E3%82%BF%E3%82%A4%E3%83%88%E3%83%AB%E3%82%92,get_the_title()%E3%82%92%20%E4%BD%BF%E3%81%84%E3%81%BE%E3%81%99%E3%80%82<\/p>\n<p>\u8a18\u4e8b\u306e\u6295\u7a3f\u8005\u3092\u8868\u793a\u3059\u308b\uff0d<!--?php the_author();?--><br \/>\nhttps:\/\/wpdocs.osdn.jp\/%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88%E3%82%BF%E3%82%B0\/the_author<\/p>\n<p>PHP\u30eb\u30fc\u30d7\u3068\u306f<br \/>\nhttps:\/\/digitor.jp\/textbook\/wordpress-loop\/<\/p>\n<p>\u6295\u7a3f\u306e\u6570\u3060\u3051\u8a18\u4e8b\u3092\u8868\u793a\u3055\u305b\u308b\u30eb\u30fc\u30d7\u306e\u8a18\u8ff0\u65b9\u6cd5<br \/>\n<!--?php while (have_posts()) : the_post(); ?--><br \/>\n\uff5e\uff5e(\u7e70\u308a\u8fd4\u3057\u305f\u3044\u5185\u5bb9)\uff5e<br \/>\n<!--?php endwhile ?--><br \/>\nhttps:\/\/php1st.com\/1202<\/p>\n<p>\u8a18\u4e8b\u306e\u6295\u7a3f\u65e5\u3092\u8868\u793a\u3055\u305b\u308b<br \/>\n\uff0d<!--?php echo date('y\/n\/d'); ?-->\u3001<!--?php the_time( get_option( 'date_format' ) ); ?--><br \/>\nhttps:\/\/thewppress.com\/libraries\/get-the-date\/<\/p>\n<p>\u8a18\u4e8b\u306e\u629c\u7c8b\u3092\u53d6\u5f97\u30fb\u8868\u793a\u3055\u305b\u308b<br \/>\n\uff0d\u629c\u7c8b\u3092\u8868\u793a\uff1a<!--?php the_excerpt();?--><br \/>\n\u629c\u7c8b\u306e\u8868\u793a\u3092\u78ba\u8a8d\u3059\u308b\u65b9\u6cd5\uff1a\u300clorem ipsum\u300d\u3068\u691c\u7d22\u3057\u3001\u8868\u793a\u3055\u308c\u308b\u30c0\u30df\u30fc\u30c6\u30ad\u30b9\u30c8\u3092\u30b3\u30d4\u30da\u3057\u3066\u78ba\u8a8d\u3059\u308b<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"LLH8RYjMUh\"><p><a href=\"https:\/\/teru-hide.com\/wordpress-how-to-use-the-excerpt\/\">the_excerpt : WordPress \u3067\u629c\u7c8b\u3092\u4f7f\u3044\u3053\u306a\u3059\u65b9\u6cd5<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;the_excerpt : WordPress \u3067\u629c\u7c8b\u3092\u4f7f\u3044\u3053\u306a\u3059\u65b9\u6cd5&#8221; &#8212; \u5de5\u5b66\u7cfb\u5927\u5b66\u9662\u751f\u306e\u30d6\u30ed\u30b0\" src=\"https:\/\/teru-hide.com\/wordpress-how-to-use-the-excerpt\/embed\/#?secret=LLH8RYjMUh\" data-secret=\"LLH8RYjMUh\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><br \/>\nhttps:\/\/dic.nicovideo.jp\/a\/lorem%20ipsum<\/p>\n<p>\u6295\u7a3f\u306e\u500b\u5225\u30da\u30fc\u30b8\u4f5c\u6210\uff0dthe_permalink<\/p>\n<p>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u30d1\u30fc\u30c4\u306b\u3059\u308b<br \/>\n\uff0dindex.html\u304b\u3089head\u90e8\u5206\u3092\u307e\u308b\u307e\u308b\u5207\u308a\u53d6\u308b\u3002header.php\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308a\u3001\u305d\u308c\u3092\u8cbc\u308a\u4ed8\u3051\u308b\u3002<br \/>\nfooter\u306b\u3042\u308bscript\u8981\u7d20\u7fa4\u3092\u5207\u308a\u53d6\u308b\u3002footer.php\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u305d\u308c\u3092\u8cbc\u308a\u4ed8\u3051\u308b\u3002<br \/>\n\u5143\u306e\u5834\u6240(\u547c\u3073\u51fa\u3057\u305f\u3044\u5834\u6240)\u306b\u305d\u308c\u305e\u308c<!--?php get_header();?-->\u3001<!--?php get_footer();?-->\u3092\u5f35\u308a\u4ed8\u3051\u308b\u3002<br \/>\nhttp:\/\/wordpress.hitsuji.me\/template-parts\/<\/p>\n<p>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u306e\u53d6\u5f97\u65b9\u6cd5\uff0dheader.php\u3068footer.php\u30d5\u30a1\u30a4\u30eb\u306elink\u306e\u4e00\u90e8\u3092<!--?php echo get_template_directory_uri();?-->\u306b\u66f8\u304d\u63db\u3048\u308b\u3001\u300chttps\u300d\u3092\u6d88\u3059<\/p>\n<p>\u69d8\u3005\u306a\u7b87\u6240\u306e\u30d1\u30fc\u30c4\u30d5\u30a1\u30a4\u30eb\u5316\uff0dnav\u3084footer\u306e\u6b8b\u308a\u3092\u5207\u308a\u53d6\u308a\u3001\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u306b\u8cbc\u308a\u4ed8\u3051\u3001\u5143\u306e\u5834\u6240\u306b\u306f<!--?php get_template_part('\u30d5\u30a9\u30eb\u30c0\u540d\/\u30d5\u30a1\u30a4\u30eb\u540d')?-->\u3092\u8a18\u8f09<\/p>\n<p>\u6295\u7a3f\u306e\u8a73\u7d30\u30da\u30fc\u30b8\u306b\u5404\u60c5\u5831\u3092\u51fa\u529b\u3055\u305b\u308b\uff0d<!--?php the_title();?-->\u3001<!--?php the_content(); ?--><\/p>\n<p>\u6295\u7a3f\u306e\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u753b\u50cf\u3092\u8a2d\u5b9a\u3059\u308b<br \/>\n\uff0dfunctions.php\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u95a2\u6570\u3092\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3067\u3001\u6295\u7a3f\u7de8\u96c6\u753b\u9762\u306b\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u753b\u50cf\u306e\u6b04\u304c\u8868\u793a\u3055\u308c\u308b\u3002<br \/>\n<!--?php add_action('init',function(){ \u3000add_theme_support('post-thumbnails'); }); ?--><br \/>\n\u8868\u793a\u3055\u305b\u305f\u3044\u5834\u6240\u306b<!--?php the_post_thumbnail();?-->\u3092\u8a18\u8ff0\u3002<br \/>\nhttps:\/\/wpdocs.osdn.jp\/%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88%E3%82%BF%E3%82%B0\/the_post_thumbnail<\/p>\n<p>\u8a00\u8a9e\u306e\u5c5e\u6027\u3092\u5224\u65ad\u3057\u3066\u8868\u793a\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b\uff0d<!--?php language_attributes();&gt;&lt;br ?--> https:\/\/prorautatie.net\/wp-language_attributes\/<\/p>\n<p>body\u8981\u7d20\u306b\u7570\u306a\u308bclass\u3092\u8a2d\u5b9a\u3059\u308b\uff0d<!--?php body_class(); ?--><br \/>\nhttps:\/\/on-ze.com\/archives\/1316<\/p>\n<p>\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u8d77\u52d5\u3059\u308b\uff0dheader.php\u306e\u30c8\u30c3\u30d7\u306b<!--?php wp_body_open();?-->\u3092\u8a18\u8ff0<\/p>\n<p>\u500b\u5225\u30da\u30fc\u30b8\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u4f5c\u6210<br \/>\n\uff0dpage.php\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3002<br \/>\nheader\u3001footer\u306e\u547c\u3073\u51fa\u3057\u306a\u3069\u3092\u884c\u3046\u3002<br \/>\nbody\u306e\u4e2d\u8eab\u306f<!--?php the_title();?-->\u3001<!--?php the_content(); ?-->\u3067\u547c\u3073\u51fa\u3059\u3002<\/p>\n<p>\u30b5\u30e0\u30cd\u30a4\u30eb\u753b\u50cf\u3092\u547c\u3073\u51fa\u3059\u95a2\u6570\u3092\u30d1\u30fc\u30c4\u5316<br \/>\n\uff0dfunction.php\u30d5\u30a1\u30a4\u30eb\u306b\u4ee5\u4e0b\u3092\u8a18\u8ff0<br \/>\nfunction get_thumbnails(){<br \/>\nif (has_post_thumbnail()) :<br \/>\n$id = get_post_thumbnail_id();<br \/>\n$img = wp_get_attachment_image_src($id, &#8216;full&#8217;);<br \/>\nelse :<br \/>\n$img = array(get_template_directory_uri() . &#8216;\u753b\u50cf\u306e\u30d1\u30b9&#8217;);<br \/>\nendif;<br \/>\nreturn $img;<br \/>\n}<br \/>\n\u30b5\u30e0\u30cd\u30a4\u30eb\u3092\u8868\u793a\u3055\u305b\u305f\u3044\u5834\u6240\u306b\u306f<!--?php $img = get_thumbnails(); ?-->\u3092\u8a18\u8ff0\u3002<br \/>\nhttps:\/\/thewppress.com\/libraries\/get-theme-directory-url-and-path\/<br \/>\nhttps:\/\/www.webdesignleaves.com\/pr\/wp\/wp_post_thumbnail.html<\/p>\n<p>\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u306e\u7de8\u96c6<br \/>\n\uff0d\u6295\u7a3f\/\u500b\u5225\u30da\u30fc\u30b8\u7de8\u96c6\u753b\u9762\u306e\u53f3\u5074\u306b\u8868\u793a\u3055\u308c\u308bURL\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3002<br \/>\n\u3082\u3057\u304f\u306f\u3001\u753b\u9762\u5de6\u5074\u30e1\u30cb\u30e5\u30fc\u306e\u8a2d\u5b9a\uff1e\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u304b\u3089\u3001\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3002<\/p>\n<p>\u304a\u554f\u5408\u305b\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u300cMW WP Form\u300d<br \/>\nhttps:\/\/form.run\/media\/contents\/website-lp-creation\/mw-wp-form\/<\/p>\n<p>\u30ab\u30c6\u30b4\u30ea\u30fc\u3068\u30bf\u30b0<\/p>\n<p>\u30ab\u30c6\u30b3\u3099\u30ea\u30fc\u4e00\u89a7\u30da\u30fc\u30b8\u306e\u4f5c\u6210<br \/>\n\uff0d\u7ba1\u7406\u753b\u9762\uff1e\u8a2d\u5b9a\uff1e\u30ab\u30c6\u30b4\u30ea\u30fc\u30d9\u30fc\u30b9\u306b\u5165\u529b\u3057\u305f\u6587\u5b57\u304c\u3001\u30ab\u30c6\u30b4\u30ea\u30fc\u4e00\u89a7\u30da\u30fc\u30b8\u306eURL\u306b\u8868\u793a\u3055\u308c\u308b\u3002<br \/>\narchive.php\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308a\u3001index.php\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u3092\u30b3\u30d4\u30da\u3059\u308b\u3002<br \/>\nh1\u306e\u30bf\u30a4\u30c8\u30eb\u3092\u7de8\u96c6\u3057\u3001\u305d\u306e\u4e0b\u306b\u8868\u793a\u3059\u308bspan\u30bf\u30b0\u306e\u30b5\u30d6\u30bf\u30a4\u30c8\u30eb\u306b\u306f\u3001&lt;? php wp_title(); ?&gt;\u3067\u30ab\u30c6\u30b4\u30ea\u30fc\u540d\u3092\u53d6\u5f97\u30fb\u8868\u793a\u3059\u308b\u3068\u3088\u3044\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"9fhWtOS9g1\"><p><a href=\"https:\/\/seigetsu-web.com\/wordpress-function-wp_title\/\">\u30da\u30fc\u30b8\u306e\u30bf\u30a4\u30c8\u30eb\u3092\u51fa\u529b\u3059\u308b\u95a2\u6570\u300cwp_title\u300d\uff1aWordPress\u95a2\u6570\u307e\u3068\u3081<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;\u30da\u30fc\u30b8\u306e\u30bf\u30a4\u30c8\u30eb\u3092\u51fa\u529b\u3059\u308b\u95a2\u6570\u300cwp_title\u300d\uff1aWordPress\u95a2\u6570\u307e\u3068\u3081&#8221; &#8212; \u661f\u6708WEB\u30c7\u30b6\u30a4\u30f3\" src=\"https:\/\/seigetsu-web.com\/wordpress-function-wp_title\/embed\/#?secret=FUYsKG9E8P#?secret=9fhWtOS9g1\" data-secret=\"9fhWtOS9g1\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>\u30bf\u30b0\u4e00\u89a7\u30da\u30fc\u30b8\u3084\u6295\u7a3f\u8005\u4e00\u89a7\u30da\u30fc\u30b8\u3092\u4f5c\u308b<br \/>\n\uff0d\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u968e\u5c64\u3067\u540c\u3058archive.php\u30d5\u30a1\u30a4\u30eb\u306b\u5c5e\u3057\u3066\u3044\u308b\u30da\u30fc\u30b8\u306e\u8868\u793a\u3092\u5909\u3048\u308b\u3002<br \/>\n\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308b\u3002<br \/>\n<!--?php if(is_category()):?--><\/p>\n<h1>Category<br \/>\n&nbsp;<\/p>\n<h1>Author&nbsp;<\/p>\n<h1>Date&nbsp;<\/p>\n<h1>Tag&nbsp;<\/p>\n<p>\u30c6\u30fc\u30de\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8<br \/>\n\uff0d\u65e5\u672c\u8a9e\u7248\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089 wordpress-theme-test-date-ja.xml \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3002<br \/>\n\u7ba1\u7406\u753b\u9762\u306e\u30c4\u30fc\u30eb\uff1e\u30a4\u30f3\u30dd\u30fc\u30c8\uff1eWordPress\uff1e\u4eca\u3059\u3050\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff1e\u30a4\u30f3\u30dd\u30fc\u30bf\u30fc\u306e\u5b9f\u884c\uff1e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f XML \u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u3057\u30a4\u30f3\u30dd\u30fc\u30c8\uff1e\u5b9f\u884c\u3002<br \/>\n\u65b0\u3057\u3044\u8a18\u4e8b\u304c\u305f\u304f\u3055\u3093\u5897\u3048\u3066\u3044\u308b\u306e\u3067\u3001\u30da\u30fc\u30b8\u306e\u9077\u79fb\u306a\u3069\u3092\u78ba\u8a8d\u3067\u304d\u308b\u3002<br \/>\nhttps:\/\/wpdocs.osdn.jp\/%E3%83%86%E3%83%BC%E3%83%9E%E3%83%A6%E3%83%8B%E3%83%83%E3%83%88%E3%83%86%E3%82%B9%E3%83%88<\/p>\n<p>\u30d8\u309a\u30fc\u30b7\u3099\u30cd\u30fc\u30b7\u30e7\u30f3<\/p>\n<p>\u30e1\u30cb\u30e5\u30fc\u306e\u7de8\u96c6<br \/>\n\uff0d\u30d7\u30e9\u30b0\u30a4\u30f3\u300cAdmin Bar Position\u300d\u3067\u7ba1\u7406\u30d0\u30fc\u3092\u753b\u9762\u4e0b\u306b\u6301\u3063\u3066\u304f\u308b\u3002<br \/>\nfunction.php\u30d5\u30a1\u30a4\u30eb\u306b\u4ee5\u4e0b\u3092\u8a18\u5165\u3057\u3001\u7ba1\u7406\u753b\u9762\u306b\u300c\u30e1\u30cb\u30e5\u30fc\u300d\u3092\u8868\u793a\u3055\u305b\u308b\u3002<\/p>\n<p>https:\/\/wpdocs.osdn.jp\/%E9%96%A2%E6%95%B0%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9\/wp_get_nav_menu_items<\/p>\n<p>\u30a8\u30b9\u30b1\u30fc\u30d5\u309a<br \/>\nhttps:\/\/www.webdesignleaves.com\/pr\/wp\/wp_escape_functions.html<\/p>\n<h2>\u5728SL Studio\u8fdb\u884c\u5b66\u4e60\u5e76\u8865\u5145\u77e5\u8bc6\u3002\u7531\u4e8e\u5728\u7ebf\u5b66\u6821\u65e0\u6cd5\u5b66\u4e60\u5230\u9664\u4e86WordPress\u4e4b\u5916\u7684PHP\u77e5\u8bc6\uff0c\u6240\u4ee5\u6211\u5728\u514d\u8d39\u7684\u7f16\u7a0b\u8bfe\u7a0bSL Studio\u4e2d\u8865\u5145\u4e86\u77e5\u8bc6\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30c7\u30fc\u30bf\u578b\u3092\u78ba\u8a8d\u3059\u308b\uff1avar_dump();<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">$str = &#8220;Hello&#8221;;<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">$num = 1;<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">$d = 0.123;<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">$flg = true;<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">var_dump($str,$num,$d,$flg);<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u51fa\u529b\u7d50\u679c<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">string(5) &#8220;Hello&#8221;<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">int(1)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">double(0.123)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">bool(true)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">bool\u578b\u306fecho\u3067\u306f\u5024\u306e\u78ba\u8a8d\u304c\u3067\u304d\u306a\u3044\u305f\u3081\u3001var_dump\u3067\u78ba\u8a8d\u3059\u308b\u3002\u95a2\u6570\u306e\u60c5\u5831\u306f\u30b7\u30b9\u30c6\u30e0\u5229\u7528\u8005\u306b\u306f\u5fc5\u8981\u306a\u3044\u305f\u3081\u3001var_dump\u306f\u30c7\u30d0\u30c3\u30af\u3067\u4f7f\u7528\u3059\u308b\u95a2\u6570\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">for\u6587<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">for ([\u30eb\u30fc\u30d7\u30ab\u30a6\u30f3\u30bf\u30fc\u5909\u6570\u306e\u521d\u671f\u5316]; [\u6761\u4ef6]; [\u5909\u6570\u518d\u4ee3\u5165]) {<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u7e70\u308a\u8fd4\u3057\u305f\u3044\u51e6\u7406<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">}<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u6761\u4ef6\u3092\u6307\u5b9a\u3057\u3001\u6761\u4ef6\u304ctrue\u3067\u3042\u308b\u9650\u308a\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3059\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30eb\u30fc\u30d7\u5185\u3067\u7e70\u308a\u8fd4\u3057\u3092\u5236\u5fa1\u3059\u308b\u305f\u3081\u306b\u5229\u7528\u3055\u308c\u308b\u5909\u6570\u3092\u30eb\u30fc\u30d7\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u3068\u3044\u3046\u3002\u4e00\u822c\u7684\u306b\u5909\u6570\u540d\u3092&#8221;\\$i&#8221;\u3068\u3057\u3066\u521d\u671f\u5024\u306b&#8221;0&#8243;\u3092\u4ee3\u5165\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30eb\u30fc\u30d7\u3092\u7d42\u3048\u308b\u305f\u3081\u306b\u6761\u4ef6\u306e\u90e8\u5206\u304c\u6700\u7d42\u7684\u306b&#8221;false&#8221;\u3068\u306a\u308b\u3088\u3046\u3001&#8221;\\$i&#8221;\u306b\u5024\u3092\u518d\u4ee3\u5165\u3057\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\u3002\u305d\u3046\u3057\u306a\u3044\u3068\u3001\u7121\u9650\u30eb\u30fc\u30d7\u306b\u306a\u308b\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u4f8b\u3048\u3070\u3001&#8221;\\$i++&#8221;\u3068\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u30eb\u30fc\u30d7\u306e\u305f\u3073\u306b&#8221;\\$i&#8221;\u306f1\u305a\u3064\u5897\u3048\u3001\u30eb\u30fc\u30d7\u3092\u629c\u3051\u308b\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u307e\u305f\u30010\u304b\u3089\u6570\u3048\u3089\u308c\u308b\u914d\u5217\u3068\u76f8\u6027\u304c\u3088\u304f\u3001\u914d\u5217\u306e\u4e2d\u8eab\u3092\u9806\u306b\u51fa\u529b\u3059\u308b\u306e\u306b\u3082\u5229\u7528\u3067\u304d\u308b\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\"><!--?php &lt;br ?--> $array = [1,2,3,4,5];<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u200b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">for ($i = 0; $i &lt; count($array); $i++) {<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u00a0 \u00a0echo $array[$i];<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">}<\/ul>\n<\/li>\n<\/ul>\n<p>while\u6587<br \/>\n<!--?php &lt;br ?--> \u200b$number = 1; (\u2190 \u4f8b\u3002\u5909\u6570\u306fwhile\u6587\u306e\u5916\u3067\u5b9a\u7fa9\u3059\u308b)<\/p>\n<p>while (\u6761\u4ef6) {<br \/>\n\u7e70\u308a\u8fd4\u3057\u305f\u3044\u51e6\u7406<br \/>\n(\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u306a\u3069\u306f\u3053\u306e\u4e2d\u306b\u66f8\u304f)<br \/>\n}<\/p>\n<p>\u57fa\u672c\u306ffor\u6587\u3067\u66f8\u3044\u305f\u65b9\u304c\u30df\u30b9\u304c\u5c11\u306a\u3044\u304c\u3001\u6574\u6570\u4ee5\u5916\u306e\u5024\u3092\u6761\u4ef6\u3068\u3059\u308b\u5834\u5408\u3084\u3001\u7e70\u308a\u8fd4\u3059\u56de\u6570\u304c\u6c7a\u307e\u3063\u3066\u3044\u306a\u3044\u6642\u306b\u306fwhile\u6587\u304c\u5229\u7528\u3057\u3084\u3059\u3044\u3002<\/p>\n<p>do-while\u6587<br \/>\nwhile\u6587\u3068\u9055\u3063\u3066\u3001\u307e\u305a\u51e6\u7406\u3092\u4e00\u5ea6\u5b9f\u884c\u3057\u3066\u304b\u3089\u3001\u6761\u4ef6\u306e\u5224\u5b9a\u3092\u3059\u308b\u3002\u305d\u306e\u305f\u3081\u3001\u6761\u4ef6\u306b\u4e00\u81f4\u3057\u306a\u304f\u3066\u3082\u6700\u4f4e\u4e00\u5ea6\u306f\u5b9f\u884c\u3055\u308c\u308b\u3002<br \/>\n<!--?php &lt;br ?--> $number = 5;<\/p>\n<p>do {\u3000\u3000\u3000\u3000\u3000(\u2190 \u7121\u6761\u4ef6\u3067\u307e\u305a\u5b9f\u884c)<br \/>\necho $number . &#8221; &#8220;;<br \/>\n$number++;<br \/>\n} while ($number &lt; 5);\u3000(\u2190 \u305d\u306e\u5f8c\u3067\u30eb\u30fc\u30d7\u3059\u308b\u304b\u5224\u5b9a)<\/p>\n<p>foreach\u6587<br \/>\nPHP\u72ec\u81ea\u306e\u69cb\u6587\u3002\u6dfb\u5b57\u304c0\u304b\u3089\u9806\u756a\u306b\u6dfb\u3048\u3089\u308c\u3066\u3044\u306a\u3044\u3088\u3046\u306a\u914d\u5217\u3084\u9023\u60f3\u914d\u5217\u306b\u3082\u5bfe\u5fdc\u3057\u3001\u8981\u7d20\u3092\u9806\u306b\u53d6\u308a\u51fa\u3057\u3066\u304f\u308c\u308b\u3002\u5168\u90e8\u53d6\u308a\u51fa\u3057\u305f\u3089\u81ea\u52d5\u7684\u306b\u30eb\u30fc\u30d7\u304c\u7d42\u308f\u308b\u3002<br \/>\n<!--?php foreach ([$arr(\u914d\u5217\u306e\u5909\u6570)]) as [$key(\u6dfb\u5b57)] =&gt; [$value(\u5024)] {&lt;br ?--> \u7e70\u308a\u8fd4\u3057\u305f\u3044\u51e6\u7406<br \/>\n\u4f8b)echo $key, &#8220;:&#8221;, $value;<br \/>\n}<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u306e\u547c\u3073\u51fa\u3057\uff1arequire &#8220;(\u30d5\u30a1\u30a4\u30eb\u540d)&#8221; \u3001\u3042\u308b\u3044\u306finclude &#8220;(\u30d5\u30a1\u30a4\u30eb\u540d)&#8221;;<br \/>\n\u9055\u3044\u306e\u6574\u7406\u3002<br \/>\nrequire\uff1a\u30d5\u30a1\u30a4\u30eb\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u5834\u5408\u3001\u30a8\u30e9\u30fc\u3068\u306a\u308a\u51e6\u7406\u304c\u4e2d\u65ad\u3055\u308c\u308b\u3002<br \/>\ninclude\uff1a\u30d5\u30a1\u30a4\u30eb\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u5834\u5408\u3001\u8b66\u544a\u3092\u767a\u3059\u308b\u304c\u51e6\u7406\u306f\u7d9a\u884c\u3055\u308c\u308b\u3002<br \/>\n\u4e0a\u8a18\uff12\u3064\u306b\u52a0\u3048\u3001require_once\u3001include_once\u304c\u3042\u308b\u3002<br \/>\nonce\u6709\u308a\uff1a\u30d5\u30a1\u30a4\u30eb\u304c\u65e2\u306b\u8aad\u307f\u8fbc\u307e\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307e\u306a\u3044\u3002<br \/>\nonce\u7121\u3057\uff1a\u30d5\u30a1\u30a4\u30eb\u304c\u65e2\u306b\u8aad\u307f\u8fbc\u307e\u308c\u3066\u3044\u3066\u3082\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u8fbc\u307f\u3092\u884c\u3046\u3002<\/p>\n<p>\u95a2\u6570<br \/>\n\u51e6\u7406\u3092\u3072\u3068\u307e\u3068\u3081\u306b\u3057\u3066\u4e8b\u524d\u306b\u5b9a\u7fa9\u3057\u3001\u597d\u304d\u306a\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u5b9f\u884c\u3067\u304d\u308b\u4ed5\u7d44\u307f\u3002<br \/>\n\u95a2\u6570\u540d\u306f\u4efb\u610f\u306b\u8a2d\u5b9a\u3067\u304d\u308b\u304c\u3001\u4ed6\u306e\u95a2\u6570\u540d\u3068\u88ab\u3089\u306a\u3044\u3088\u3046\u306b\u6ce8\u610f(\u30a8\u30e9\u30fc\u306b\u306a\u308b)\u3002<br \/>\n\u53ef\u8aad\u6027\u3092\u8003\u3048\u3066\u3001\u4e0a\u90e8\u3084\u4e0b\u90e8\u306b\u95a2\u6570\u306e\u5ba3\u8a00\u3092\u307e\u3068\u3081\u3066\u66f8\u304f\u5834\u5408\u304c\u591a\u3044\u3002\u306a\u304a\u3001\u5b9f\u884c\u306e\u8a18\u8ff0\u304c\u5ba3\u8a00\u3088\u308a\u524d\u306b\u66f8\u304b\u308c\u3066\u3044\u3066\u3082\u554f\u984c\u306a\u304f\u5b9f\u884c\u3055\u308c\u308b\u3002<br \/>\nPHP\u3067\u4e88\u3081\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u30d3\u30eb\u30c8\u30a4\u30f3\u95a2\u6570\u3068\u3044\u3046\u3082\u306e\u3082\u3042\u308b\u3002\u3053\u308c\u307e\u3067\u306b\u4f7f\u3063\u3066\u3044\u305f&#8221;var_damp();&#8221;\u306a\u3069\u3002<\/p>\n<p>\u5f15\u6570<br \/>\n\u5b9a\u7fa9\u3057\u305f\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u306b\u3042\u305f\u3063\u3066\u3001\u5fc5\u8981\u306b\u306a\u308b\u5024\u3092\u5909\u6570\u3067\u4eee\u7f6e\u304d\u3057\u3066\u304a\u304f(\u4eee\u5f15\u6570)\u3002\u4f7f\u7528\u3059\u308b\u6642\u306b\u9806\u756a\u306b\u305d\u306e\u5024\u3092\u6e21\u3059(\u5b9f\u5f15\u6570)\u3002<br \/>\n\u4eee\u5f15\u6570\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u5165\u308c\u3066\u304a\u3044\u3066($\u5909\u6570 = \u5024,)\u3001\u4f55\u3082\u6e21\u3055\u305a\u306b\u305d\u306e\u5024\u3092\u4f7f\u7528\u3057\u305f\u308a\u3001\u5f15\u6570\u3092\u6e21\u3057\u3066\u305d\u306e\u5024\u3092\u4e0a\u66f8\u304d\u3057\u3066\u4f7f\u3063\u305f\u308a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3002<br \/>\nfunction \u95a2\u6570\u540d (\u4eee\u5f15\u65701, \u4eee\u5f15\u65702&#8230;) {<br \/>\n\u51e6\u7406<br \/>\n}<\/p>\n<p>\u95a2\u6570\u540d (\u5b9f\u5f15\u65701, \u5b9f\u5f15\u65702&#8230;);<\/p>\n<p>\u4f8b\uff09\u56db\u89d2\u5f62\u306e\u9762\u7a4d\u3092\u7b97\u51fa\u3059\u308b\u95a2\u6570<br \/>\nfunction menseki ($tate, $yoko) {<br \/>\n$menseki = $tate * $yoko<br \/>\necho $menseki<br \/>\n}<\/p>\n<p>menseki(5, 10); \/\/\u51fa\u529b\u7d50\u679c 50<\/p>\n<p>return\u6587(\u623b\u308a\u5024)<br \/>\nreturn \u5024;\u3067\u3001\u547c\u3073\u51fa\u3057\u5143\u306b\u623b\u308b\u3068\u540c\u6642\u306b\u5024\u3092\u8fd4\u3059(\u305d\u308c\u79fb\u884c\u306e\u51e6\u7406\u306f\u5b9f\u884c\u3055\u308c\u306a\u3044)\u3002<br \/>\nfuncrion shikaku(&amp;tate, $yoko) {<br \/>\n$menseki = $tate * $yoko;<br \/>\nif($menseki &gt;= 100) {<br \/>\nreturn &#8220;100\u4ee5\u4e0a&#8221;;<br \/>\n}<\/p>\n<p>return &#8220;100\u672a\u6e80&#8221;;<\/p>\n<p>}<\/p>\n<p>echo shikaku(15,10);<br \/>\necho &#8220;\\n&#8221;;<br \/>\necho shikaku(5,5);<\/p>\n<p>\/\/ \u51fa\u529b\u7d50\u679c<br \/>\n\/\/ 100\u4ee5\u4e0a<br \/>\n\/\/ 100\u672a\u6e80<\/p>\n<p>\u30d3\u30eb\u30c8\u30a4\u30f3\u95a2\u6570<\/p>\n<p>\u6587\u5b57\u5217\u64cd\u4f5c<\/p>\n<p>str_replace()<\/p>\n<p>strpos()<\/p>\n<p>substr()<\/p>\n<p>Math\u95a2\u6570<\/p>\n<p>random_int()<\/p>\n<p>ceil()<\/p>\n<p>floor()<\/p>\n<p>round()<\/p>\n<p>\u65e5\u6642\u95a2\u6570<\/p>\n<p>\u73fe\u5728\u65e5\u6642\u306e\u53d6\u5f97\uff1adate();<br \/>\ndate(Y-m-d H:i:s);<br \/>\n\/\/2023-03-31 15:05:22<br \/>\n\u203b\u9593\u306e&#8221;-&#8220;\u3084&#8221;:&#8221;\u3092\u6307\u5b9a\u3067\u304d\u308b<br \/>\ndate(y\u5e74m\u6708d\u65e5 H\u6642i\u5206s\u79d2);<br \/>\n\/\/2023\u5e7403\u670806\u65e5 15\u664205\u520622\u79d2<br \/>\ndate(y-M-j h:i:s D);<br \/>\n\/\/23-March-6 03:05:22 Fri<br \/>\n\u203by\u2192\u897f\u66a6\u306e\u4e0b\u4e8c\u6841,M\u2192\u82f1\u8a9e\u306e\u6708,j\u2192\u5341\u306e\u4f4d\u306e0\u3092\u7701\u3044\u305f\u65e5\u4ed8,h\u219212\u6642\u9593\u8868\u8a18\u306e\u6642\u9593,D\u2192\u82f1\u8a9e\u306e\u66dc\u65e5\u4e0a3\u6587\u5b57<\/p>\n<p>\u6642\u9593\u306e\u53d6\u5f97\uff1atime();<br \/>\nUNIX\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3092\u8fd4\u3059\u3002<br \/>\nUNIX\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3068\u306f\u3001\u4e16\u754c\u6a19\u6e96\u6642\u57fa\u6e96\u30671970\u5e741\u67081\u65e5 00:00:00\uff08\u65e5\u672c\u6642\u9593 09:00:00\uff09\u304b\u3089\u73fe\u5728\u306e\u6642\u523b\u307e\u3067\u3092\u79d2\u6570\u63db\u7b97\u3057\u305f\u3082\u306e\u3002<\/p>\n<p>\u914d\u5217\u95a2\u6570<\/p>\n<p>\u6574\u6570\u306e\u8981\u7d20\u3092\u914d\u5217\u3068\u3057\u3066\u8fd4\u3059\uff1arange()<br \/>\nrange(int $start, int $end, int $step = 1)<br \/>\n\/\/$start \u304b\u3089 $end \u307e\u3067\u306e\u6574\u6570\u3002<br \/>\n\/\/$step \u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u5897\u52a0\u91cf\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<p>\u8981\u7d20\u306e\u6570\u3092\u8fd4\u3059\uff1acount()<\/p>\n<p>\u914d\u5217\u306e\u7bc4\u56f2\u3092\u6307\u5b9a\u3057\u3066\u3001\u914d\u5217\u3068\u3057\u3066\u8fd4\u3059\uff1aarray_slice()<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u56e0\u4e3a\u5f00\u59cb\u5b66\u4e60PHP\uff0c\u6240\u4ee5\u9996\u5148\u6211\u4f1a\u603b\u7ed3\u5728\u5728\u7ebf\u8bfe\u7a0b\u4e2d\u5b66\u5230\u7684\u77e5\u8bc6\u3002 \u5728\u8fd9\u95e8\u8bfe\u7a0b\u4e2d\uff0c\u901a\u8fc7\u4f7f\u7528WordPress\u521b\u5efa\u535a\u5ba2 [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[227],"class_list":["post-30291","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-227"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6574\u7406PHP\u7684\u5b66\u4e60\u5185\u5bb9 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u5173\u4e8e\u6574\u7406PHP\u7684\u5b66\u4e60\u5185\u5bb9\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u6574\u7406php\u7684\u5b66\u4e60\u5185\u5bb9\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6574\u7406PHP\u7684\u5b66\u4e60\u5185\u5bb9\" \/>\n<meta property=\"og:description\" content=\"\u5173\u4e8e\u6574\u7406PHP\u7684\u5b66\u4e60\u5185\u5bb9\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u6574\u7406php\u7684\u5b66\u4e60\u5185\u5bb9\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-21T17:53:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-12T10:29:19+00:00\" \/>\n<meta name=\"author\" content=\"\u79d1, \u9896\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u9896\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%95%b4%e7%90%86php%e7%9a%84%e5%ad%a6%e4%b9%a0%e5%86%85%e5%ae%b9\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%95%b4%e7%90%86php%e7%9a%84%e5%ad%a6%e4%b9%a0%e5%86%85%e5%ae%b9\/\",\"name\":\"\u6574\u7406PHP\u7684\u5b66\u4e60\u5185\u5bb9 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-03-21T17:53:40+00:00\",\"dateModified\":\"2025-08-12T10:29:19+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\"},\"description\":\"\u5173\u4e8e\u6574\u7406PHP\u7684\u5b66\u4e60\u5185\u5bb9\u7684\u6280\u672f\u6587\u7ae0\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%95%b4%e7%90%86php%e7%9a%84%e5%ad%a6%e4%b9%a0%e5%86%85%e5%ae%b9\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%95%b4%e7%90%86php%e7%9a%84%e5%ad%a6%e4%b9%a0%e5%86%85%e5%ae%b9\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%95%b4%e7%90%86php%e7%9a%84%e5%ad%a6%e4%b9%a0%e5%86%85%e5%ae%b9\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6574\u7406PHP\u7684\u5b66\u4e60\u5185\u5bb9\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\",\"name\":\"\u79d1, \u9896\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u9896\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%95%b4%e7%90%86php%e7%9a%84%e5%ad%a6%e4%b9%a0%e5%86%85%e5%ae%b9\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u6574\u7406PHP\u7684\u5b66\u4e60\u5185\u5bb9 - Blog - Silicon Cloud","description":"\u5173\u4e8e\u6574\u7406PHP\u7684\u5b66\u4e60\u5185\u5bb9\u7684\u6280\u672f\u6587\u7ae0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u6574\u7406php\u7684\u5b66\u4e60\u5185\u5bb9\/","og_locale":"zh_CN","og_type":"article","og_title":"\u6574\u7406PHP\u7684\u5b66\u4e60\u5185\u5bb9","og_description":"\u5173\u4e8e\u6574\u7406PHP\u7684\u5b66\u4e60\u5185\u5bb9\u7684\u6280\u672f\u6587\u7ae0","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u6574\u7406php\u7684\u5b66\u4e60\u5185\u5bb9\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-03-21T17:53:40+00:00","article_modified_time":"2025-08-12T10:29:19+00:00","author":"\u79d1, \u9896","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u9896","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%95%b4%e7%90%86php%e7%9a%84%e5%ad%a6%e4%b9%a0%e5%86%85%e5%ae%b9\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%95%b4%e7%90%86php%e7%9a%84%e5%ad%a6%e4%b9%a0%e5%86%85%e5%ae%b9\/","name":"\u6574\u7406PHP\u7684\u5b66\u4e60\u5185\u5bb9 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-03-21T17:53:40+00:00","dateModified":"2025-08-12T10:29:19+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e"},"description":"\u5173\u4e8e\u6574\u7406PHP\u7684\u5b66\u4e60\u5185\u5bb9\u7684\u6280\u672f\u6587\u7ae0","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%95%b4%e7%90%86php%e7%9a%84%e5%ad%a6%e4%b9%a0%e5%86%85%e5%ae%b9\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e6%95%b4%e7%90%86php%e7%9a%84%e5%ad%a6%e4%b9%a0%e5%86%85%e5%ae%b9\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%95%b4%e7%90%86php%e7%9a%84%e5%ad%a6%e4%b9%a0%e5%86%85%e5%ae%b9\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u6574\u7406PHP\u7684\u5b66\u4e60\u5185\u5bb9"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e","name":"\u79d1, \u9896","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","caption":"\u79d1, \u9896"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%95%b4%e7%90%86php%e7%9a%84%e5%ad%a6%e4%b9%a0%e5%86%85%e5%ae%b9\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/30291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=30291"}],"version-history":[{"count":3,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/30291\/revisions"}],"predecessor-version":[{"id":111721,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/30291\/revisions\/111721"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=30291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=30291"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=30291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}