网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 网站设计 > PHP
User Name
Password
 
FAQ Members List Calendar Cheap Glasses

Reply
 
Thread Tools Display Modes
  #1   IP: 180.125.109.50
Old 2014-12-27, 09:57 AM
Harvel Harvel is offline
初级会员
 
Join Date: 2007-03-26
Posts: 2
Harvel 现在声名狼藉
Default array_values(): 取出数组的值,行成索引数组

Code:
<?php

 //array_values(): 取出数组的值,行成索引数组
$lamp=array("os"=>"linux","webserver"=>"apache","db"=>"mysql","language"=>"php");
$arr=array_values($lamp);

echo '<pre>';
print_r($arr);
echo '</pre>';

list($os,$wb,$db,$lang)=$arr;
echo $os."<br>";
echo $wb."<br>";
echo $db."<br>";
echo $lang."<br>";
gvim复制粘贴与重复动作:
按几下 ESC 确认当前处在 Normal 模式下, 然后按 yy , 即可将当前行复制到默认寄存器中 (相当于剪贴板) 。 然后按下 4p , VIM 将执行粘贴动作 12 次, 屏幕上出现了 13 行这样的字符:
echo $os."<br>";
echo $os."<br>";
echo $os."<br>";
echo $os."<br>";
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 07:31 AM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.