You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
ããã°ã©ã ãæ¸ãã¦ããã¨ãå ¥åå¤ãè¾æ¸ã«å«ã¾ãã¦ãããã調ã¹ãããããªãã¨ãããã¾ãããã¨ãã°ãã¦ã¼ã¶ã¼ã«é½éåºçåãå ¥åããã¦ããããæ£ããé½éåºçåã§ãããã©ããã調ã¹ãããã¨ãããããªãã¨ãããããããã¾ããã ãã®ãããªå 容ãPHPã§æ¸ãéããã¼ã«é½éåºçåãæã¤ãããªé£æ³é åãä½ãç¿æ £ããã人ã¯å¤ãã¯ãã§ããããã¯å ¸åçãªé£æ³é åã®ä½¿ãæ¹ã¨ãããã§ãããã <?php $prefs = array( "åæµ·é" => true, "é森" => true, // ... "æ²ç¸" => true, ); if (isset($prefs[$input])) { // é½éåºçåãæ£ããæã®å¦ç } ä¸æ¹ã§ãin_arrayé¢æ°ã使ãããæ¹ãèãããã¾ãã <?php $prefs = array( "åæµ·é", "é森", // ... "æ²ç¸", ); if (in_array
PHP 5ããPHP 7ã¸ã®ç§»è¡ã§ãTumblrã¯ã¬ã¤ãã³ã·ãååãCPUè² è·ãåæ¸ããã¹ããã¼ã«ã§PHP 7ã¸ã®ç§»è¡ã«åé¡ãªããããã§ã㯠PHPã®10å¹´ã¶ãã®ã¡ã¸ã£ã¼ãã¼ã¸ã§ã³ã¢ããã¨ãã¦æ¨å¹´12æã«ç»å ´ãããPHP 7ãã¯ãPHP 5ã¨æ¯ã¹ã¦2å以ä¸ã®å®è¡é度ãå®ç¾ããã¨ãªãªã¼ã¹åããPHPã®çã¿ã®è¦ªã§ããRasmus Lerdorfæ°èªèº«ã説æãã¦ãã¾ããã PHP 5ããPHP 7ã¸ã¨å é¨ã·ã¹ãã ã®ã¢ãããã¼ããè¡ã£ãTumblrã¯ãã®ææãããã°ã§çºè¡¨ãããããã«PHP 7ã®ã¸ç§»è¡ãããã¨ã§å®è¡é度ã2åã«ãªã£ããã¨ãè£ä»ãã¦ãã¾ãã éç解æã¨èªåãã¹ãã§PHP 7ã¸ã®ç§»è¡ã«åé¡ããªãããç¢ºèª Tumblrãå ¬éããããã°ãTumblr Engineering â PHP 7 at Tumblrãã«ããã¨ãTumblrããã®å é¨ã§ç¨¼åãã¦ããã·ã¹ãã ãPHP 5ããPHP 7
PHP Conference é¢è¥¿ 2016 ã§å ¬æ¼ããã¹ã©ã¤ãã§ã æ¬æ¥ã·ã³ã°ã«ã¹ã¬ããã®å¦çç³»ã§ããPHPã§ãããéåæå¦çã絶対ã«å®ç¾ã§ããªããã¨ããã¨ããããããã§ã¯ããã¾ããã ç´ ã®PHPã§ã¯ç¢ºãã«é£ããã§ãããå種ã¨ã¯ã¹ãã³ã·ã§ã³ãã©ã¤ãã©ãªã®åãåãããã¨ã§ãPHPã®ææ³ã§éåæå¦â¦
2016/07/09ã10 ã«å¤§éªå¤§å¦ è±ä¸ãã£ã³ãã¹ã§éå¬ããã WordCamp Kansai 2016 ã«ã¦ãWordPress ãµã¤ãã®ãã¥ã¼ãã³ã°ã«ã¤ãã¦çºè¡¨ãã¾ããã https://twitter.com/digitalcube/status/751693759121731584 çºè¡¨è³æ ä»åã¯ãPHPï¼WordPressï¼ã¨ã³ã¸ãã¢ã§ãªãã¦ãä½ãå½¹ç«ã¦ã¦ããããããã«ãã¥ã¼ãã³ã°ã®å ·ä½çãªææ³ã¨ããããã¯ãå®éã«æãåããã¨ã³ã¸ãã¢ã¨ææçéãã¹ã ã¼ãºã«ãªãããã«åºæ¬çãªèãæ¹ãã¡ã¤ã³ã«ã話ãã¾ããã ãæ¨æ¸¬ãããªãè¨æ¸¬ãããã¨ããæ ¼è¨ãããã¨ããããã¥ã¼ãã³ã°ã«ããã¦ããã¾ã大äºãªã®ã¯ãè¨æ¸¬ãããã¨ãããã¨ã§ããè¨æ¸¬ããã«ãã¿ããã«ãã¥ã¼ãã³ã°ãè¡ã£ã¦ããã±ã¼ã¹ãè¦èãããã®ã§ãããããã¯ãããå 容ã«ãã¾ããã å¾åã¯ããã£ãã·ã¥ãä¸å¿ã«ç´¹ä»ããã®ã§ãããæå¾ã® Var
<?php ini_set('display_errors', 1); error_reporting(E_ALL); function get_pdo() { $dsn = sprintf('mysql:dbname=%s;host=%s;charset=%s' , 'database' , 'localhost' , 'utf8' ); $username = 'root'; $password = 'password'; $options = [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]; return new PDO($dsn, $username, $password, $options); } function fetch_array() { $pdo = get_pdo(); $statement = 'select * from
ãã®è¨äºã¯ä½ã æçºçãªæè¨ã«ãªã£ã¦ãç®æã¯ãããã®ã®ãå 容ã¨ãã¦ã¯ãããªãã«ã¾ããã«æ¸ããã¤ããããããããããã¦ãã£ãããã¾ã§ã¯åè»ãã¦ããã PHPDocã¯å¿ ãæ¸ã ããããåå©ç¨å¯è½ãªæç¶ãã¯ãä»äººã容æã«å¿ç¨ã§ããããã«åãæ示çã§ãªããã°ãããªããã¡ã³ãã¼å ¨å¡ãå®è£ ã³ã¼ãå ¨ã¦ãææ¡ã§ãããã®ãªããããçæ³ã ããã©ãæ®å¿µãªããæéã¯æéã ããããã ããèªãã§ã¡ã½ããã®ä»æ§ãç解ã§ããã¾ãã¯ã³ã¼ããèªãå©ãã«ãªããããªã³ã¡ã³ããè¯ãã æåãªäºå®ãç´¹ä»ããã¨ãå¤ãã®ã³ã¼ãã¯æ°ãæ(æ©ããã°æ°æ¥ï¼)ãçµã¦ã°ãä»äººãæ¸ããã³ã¼ãã«æããããã»ã©ç解ã§ããªããªããã¨ããã°ãã°ããããã¡ããè¨è¨ã®ç·´åº¦ã«ããããããè¨è¨å¤æã«ã¤ãã¦æ³¨æãè¦ããç¹ãªã©ãã³ã¡ã³ãã«æ®ãã¦ãããã¨ã§ãã²ãã¦ã¯æªæ¥ã®èªåã®å½¹ã«ç«ã¦ããã¨ãã§ããã ãåã®å 輩ã¯ãPHPã«ã¯åããªãããªã©ã¨ç¥ã£ããã¶ã£ã¦æå³ä¸æ1ãªã
ã¿ã¤ãã«ã¯è¥å¹²é£ãã§ãã CakePHPã«ã¯ãã¤ã°ã¬ã¼ã·ã§ã³ãã¼ã«ã¨ãã¦ãCakeDC/Migrations(CakePHP2)ããPhinxãã¼ã¹ã®cakephp/migrations(CakePHP3)ãããã¾ãã ã¨ã¦ãæç¨ã§ãããCakePHP Bakerã¯ã¿ããªç¥ã£ã¦ãããã¼ã«ã§ããèªåããã£ã¨ãä¸è©±ã«ãªã£ã¦ãã¾ããã ãã ãã¡ããã¡ããå°ããã¨ããã£ãã®ã§ãæè¿ã¯Ridgepoleã使ãå§ãã¦ãã¾ãã Ridgepole github.com Ridgepoleã¯ã¯ãã¯ããã社ã§å©ç¨ããã¦ããã¨ãããã¤ã°ã¬ã¼ã·ã§ã³ãã¼ã«ã§ãã techlife.cookpad.com Ridgepoleã¯æ大ã®å©ç¹ãã1ã¤ã®Schemafileã管çããã ãã§ã¹ãã¼ãã®ã¹ãçæ§ãæ ä¿ãã¦ãããã¨ãããã¨ã§ãã Ridgepoleã¯DSLèªä½ãRailsã®ActiveRecordã¨åãã ã¨ããã
ãªã«ãªã« ãã¾ãæåã§ã¯ãªãã®ã§ãããããããåããªãããããã¾ããããPHPã«ã¯é«éé«æ©è½ãªforeachã£ã¦ã¤ãã¬ã¼ã·ã§ã³æ©æ§ãè¨èªçµã¿è¾¼ã¿ã«ããã®ã§ãããããarray_mapã¨ãæ¸ããªãã¦ããããã§ããï¼ï¼ï¼ï¼ï¼â é¶å´ãã¬ç¹ (@tadsan) 2016å¹´5æ25æ¥ array_mapã«æ¸¡ãã¦ããã®ã¯callableãªå¤ã®ã¿ã§ã array_map(function(){ ... ã¨ãæ¸ãå§ãããããã¯æåãã©ã°ãç´ ç´ã« foreach ã§æ¸ãï¼â é¶å´ãã¬ç¹ (@tadsan) 2016å¹´5æ25æ¥ ãã©é åã®ãã§ããã¨æ°ããé åã¸ã®æ ¼ç´ã§PHPãªãã³ã¼ãå¢ããããçµã¿è¾¼ã¿é¢æ°ã®ã»ããéãããããªãã®? æ¤è¨¼ãã¦ã¿ã: > php -d memory_limit=-1 array-spped-test.php Ginq + Closure: 782.2070ms x1.00 G
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}