{"id":8090,"date":"2017-04-14T00:29:04","date_gmt":"2017-04-13T15:29:04","guid":{"rendered":"http:\/\/nanoappli.com\/blog\/?p=8090"},"modified":"2017-04-09T00:49:26","modified_gmt":"2017-04-08T15:49:26","slug":"php%e9%96%a2%e6%95%b0%e3%81%ae%e6%88%bb%e3%82%8a%e5%80%a4%e3%81%abnull%e5%80%a4%e3%81%ae%e8%a8%b1%e5%ae%b9%e3%82%92%e3%82%bf%e3%82%a4%e3%83%97%e3%83%92%e3%83%b3%e3%83%86%e3%82%a3%e3%83%b3%e3%82%b0","status":"publish","type":"post","link":"http:\/\/nanoappli.com\/blog\/archives\/8090","title":{"rendered":"[PHP]\u95a2\u6570\u306e\u623b\u308a\u5024\u306bnull\u5024\u306e\u8a31\u5bb9\u3092\u30bf\u30a4\u30d7\u30d2\u30f3\u30c6\u30a3\u30f3\u30b0\u3055\u305b\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\nPHP7\u3067\u306f\u3001\u95a2\u6570\u306e\u623b\u308a\u5024\u306e\u65b9\u3092\u5236\u9650\u3059\u308b\u305f\u3081\u306e\u30bf\u30a4\u30d7\u30d2\u30f3\u30c6\u30a3\u30f3\u30b0\u6a5f\u80fd\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002<br \/>\nPHP7.1\u3067\u306f\u3001\u3053\u306e\u30bf\u30a4\u30d7\u30d2\u30f3\u30c6\u30a3\u30f3\u30b0\u306b\u5bfe\u3057\u3066\u3001\u3055\u3089\u306b&#8221;\u6307\u5b9a\u3055\u308c\u305f\u578b\u3001\u3082\u3057\u304f\u306f\u3001null&#8221;\u304c\u8fd4\u3055\u308c\u308b\u3053\u3068\u5f37\u5236\u3059\u308b\u3001null\u8a31\u5bb9\u578b\u306e\u30bf\u30a4\u30d7\u30d2\u30f3\u30c6\u30a3\u30f3\u30b0\u6a5f\u80fd\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002<br \/>\n<br \/>\n\u4f8b\u3048\u3070<code>string or null<\/code>\u306ereturn\u3092\u5f37\u5236\u3057\u305f\u3044\u5834\u5408\u3001\u4e0b\u8a18\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306e\u3088\u3046\u306b&#8221;?string&#8221;\u5148\u982d\u3078&#8221;?&#8221;\u3092\u4ed8\u3051\u308c\u3070OK\u3067\u3059\u3002<br \/>\n<br \/>\n<pre><code>&lt;?php\nfunction foo($option) : ?string\n{\n    if ($option == 1) {\n        return \"hello\";\n    }\n    return null;\n}\n\necho foo(1);\necho foo(0);\n<\/code><\/pre><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP7\u3067\u306f\u3001\u95a2\u6570\u306e\u623b\u308a\u5024\u306e\u65b9\u3092\u5236\u9650\u3059\u308b\u305f\u3081\u306e\u30bf\u30a4\u30d7\u30d2\u30f3\u30c6\u30a3\u30f3\u30b0\u6a5f\u80fd\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002 PHP7.1\u3067\u306f\u3001\u3053\u306e\u30bf\u30a4\u30d7\u30d2\u30f3\u30c6\u30a3\u30f3\u30b0\u306b\u5bfe\u3057\u3066\u3001\u3055\u3089\u306b&#8221;\u6307\u5b9a\u3055\u308c\u305f\u578b\u3001\u3082\u3057\u304f\u306f\u3001null&#8221;\u304c\u8fd4\u3055\u308c\u308b\u3053\u3068\u5f37\u5236\u3059\u308b\u3001null\u8a31\u5bb9\u578b\u306e\u30bf\u30a4\u30d7\u30d2\u30f3\u30c6\u30a3\u30f3\u30b0\u6a5f\u80fd\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002 \u4f8b\u3048\u3070string or null\u306ereturn\u3092\u5f37\u5236\u3057\u305f\u3044\u5834\u5408\u3001\u4e0b\u8a18\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306e\u3088\u3046\u306b&#8221;?string&#8221;\u5148\u982d\u3078&#8221;?&#8221;\u3092\u4ed8\u3051\u308c\u3070OK\u3067\u3059\u3002 &lt;?php function foo($option) : ?string { if ($option == 1) \u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[22],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":8093,"url":"http:\/\/nanoappli.com\/blog\/archives\/8093","url_meta":{"origin":8090,"position":0},"title":"[PHP7.1]\u30bf\u30a4\u30d7\u30d2\u30f3\u30c6\u30a3\u30f3\u30b0\u3067\u95a2\u6570\u306e\u623b\u308a\u5024\u306bvoid\u3092\u6307\u5b9a\u3057\u305f\u3068\u304d\u306e\u3075\u308b\u307e\u3044","date":"2017\u5e744\u670816\u65e5","format":false,"excerpt":"PHP7.1\u3067\u306f\u3001\u30bf\u30a4\u30d7\u30d2\u30f3\u30c6\u30a3\u30f3\u30b0\u3067\u95a2\u6570\u306e\u623b\u308a\u5024\u3067\u5024\u3092\u8fd4\u3055\u306a\u3044\u3053\u3068\u3092\u660e\u793a\u3059\u308b\u305f\u3081\u306b\u3001void\u306e\u6307\u5b9a\u2026","rel":"","context":"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1014,"url":"http:\/\/nanoappli.com\/blog\/archives\/1014","url_meta":{"origin":8090,"position":1},"title":"SQL Server2012\u3067\u8ffd\u52a0\u3055\u308c\u308b\u65b0\u3057\u3044\u7d44\u307f\u8fbc\u307f\u95a2\u657014\u500b","date":"2012\u5e741\u670831\u65e5","format":false,"excerpt":"\u524d\u56de\u306e\u8a18\u4e8b\u3067\u306f\u3001SQL Server 2012\u3067\u8ffd\u52a0\u3055\u308c\u308b\u65b0\u69cb\u6587\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002 \u672c\u8a18\u4e8b\u3067\u306f\u3001\u7d44\u307f\u8fbc\u2026","rel":"","context":"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/nanoappli.com\/blog\/wp-content\/uploads\/20120131_02.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2989,"url":"http:\/\/nanoappli.com\/blog\/archives\/2989","url_meta":{"origin":8090,"position":2},"title":"[PHP]php5.3\u3067DateTime\u30af\u30e9\u30b9\u306b\u8ffd\u52a0\u3055\u308c\u305f\u30e1\u30bd\u30c3\u30c9\u3068\u540c\u7b49\u306e\u4e8b\u30925.2\u3067\u884c\u3046","date":"2012\u5e745\u670830\u65e5","format":false,"excerpt":"PHP5.2\u306b\u5bfe\u3057\u3066\u3001PHP5.3\u3067\u306fDateTime\u30af\u30e9\u30b9\u306b\u5bfe\u3057\u3066\u30e1\u30bd\u30c3\u30c9\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u30015\u2026","rel":"","context":"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7594,"url":"http:\/\/nanoappli.com\/blog\/archives\/7594","url_meta":{"origin":8090,"position":3},"title":"WordPress\u306b\u304a\u3051\u308b\u30d5\u30c3\u30af\u51e6\u7406\u306e\u4ed5\u7d44\u307f\u3068\u306f?","date":"2016\u5e746\u670812\u65e5","format":false,"excerpt":"WordPress\u306e\u30d5\u30c3\u30af\u3068\u306f\u4f55\u304b? WordPress\u306b\u304a\u3051\u308b\u30d5\u30c3\u30af\u3068\u306f\u3001\u4f55\u3067\u3057\u3087\u3046\u304b? \u30d5\u30c3\u30af\u3068\u2026","rel":"","context":"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/nanoappli.com\/blog\/wp-content\/uploads\/2016\/06\/160612_1-500x222.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":7401,"url":"http:\/\/nanoappli.com\/blog\/archives\/7401","url_meta":{"origin":8090,"position":4},"title":"[PHP]\u95a2\u6570\u306e\u5916\u3068\u4e2d\u3067\u3001\u540c\u3058\u540d\u524d\u306e\u5909\u6570\u3092\u5b9a\u7fa9\u3057\u305f\u3068\u304d\u306e\u632f\u308b\u821e\u3044\u306f?","date":"2016\u5e744\u67088\u65e5","format":false,"excerpt":"PHP\u3067\u306f\u5909\u6570\u306e\u30b9\u30b3\u30fc\u30d7\u306b\u3001\u30b0\u30ed\u30fc\u30d0\u30eb\u306f\u5909\u6570\u3068\u3001\u95a2\u6570\u5185\u306e\u307f\u6709\u52b9\u306a\u5909\u6570\u304c\u3042\u308a\u307e\u3059\u3002 \u3053\u306e\uff12\u3064\u306e\u9593\u3067\u540c\u3058\u2026","rel":"","context":"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2115,"url":"http:\/\/nanoappli.com\/blog\/archives\/2115","url_meta":{"origin":8090,"position":5},"title":"[CrystalReports]\u7a4d\u7b97\u5408\u8a08\u30d5\u30a3\u30fc\u30eb\u30c9\u3067,\u96c6\u8a08\u306e\u30bf\u30a4\u30d7\u306b&#8221;\u5408\u8a08&#8221;\u304c\u51fa\u306a\u3044\u5834\u5408","date":"2012\u5e744\u67089\u65e5","format":false,"excerpt":"CrystalReports\u3067\u3001\u5408\u8a08\u5024\u3092\u5370\u5b57\u3057\u3088\u3046\u3068\u3057\u3066\u7a4d\u7b97\u5408\u8a08\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u4f5c\u6210\u3057\u305f\u969b\u3001\u96c6\u8a08\u306e\u30bf\u30a4\u30d7\u2026","rel":"","context":"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/posts\/8090"}],"collection":[{"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/comments?post=8090"}],"version-history":[{"count":2,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/posts\/8090\/revisions"}],"predecessor-version":[{"id":8092,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/posts\/8090\/revisions\/8092"}],"wp:attachment":[{"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/media?parent=8090"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/categories?post=8090"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/tags?post=8090"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}