xiaozi 2014-11-21 22:12:00

php 中,php>5.3,三木运算可省略第一个参数,且默认为条件的值

php php
<?php

$a = array('hi');

$a = $a?:array('hello');

评论

Home - Wiki
Copyright © 2011-2025 iteam. Current version is 2.142.1. UTC+08:00, 2025-04-05 03:13
浙ICP备14020137号-1 $Map of visitor$