<p class="sougouContent"> 当数值大于等于10000的时候输出1万 小于10000正常输出 <br> 15000输出1.5万 <br> 100000输出10万 <br> <br> 要怎么写 </p> <br> <h2>回复讨论(解决方案)</h2> <p class="sougouAnswer"> <div class="code" style="position:relative; padding:0px; margin:0px;"><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="sycode" name="code">$i=15000;echo $i>=10000 ? $i/10000 .'万' : $i;</pre><div class="contentsignin">登录后复制</div></div><div class="contentsignin">登录后复制</div></div> </p> <p class="sougouAnswer"> <div class="code" style="position:relative; padding:0px; margin:0px;"><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="sycode" name="code">$i=15000;echo $i>=10000 ? $i/10000 .'万' : $i;</pre><div class="contentsignin">登录后复制</div></div><div class="contentsignin">登录后复制</div></div> <br> +1 </p> <p class="sougouAnswer"> 动态语言做这种事情太合适了 </p>