Get Smarty

Donate

Donate Bitcoin Bitcoin
Paypal

Smarty Icon

You may use the Smarty logo according to the trademark notice.

Smarty Template Engine Smarty Template Engine

For sponsorship, advertising, news or other inquiries, contact us at:

Sites Using Smarty

Buy cheap eyeglasses from Cheapglasses123.com and save up to 80%.

Buy prescription glasses from www.australiaglasses.com and save.

Cheap Glasses Now On Sale at GlassesPeople.com. Starts At $7.95.

Where to buy discount wedding dresses and cheap smart dresses free shipping - Weddingdresstrend.com

Brautkleider auf Topwedding.de

Find free files to download on allwhatyouwant.net

Looking For Affordable Wedding Dresses 2015 at Best Prices On TDBridal.com

Shop high quality cheap prom dresses on Dresswe.co.uk

Buy New Arrival Cheap Prom Dresses 2015 at JDBRIDAL Prom Dress Store

Advertisement

Name

appendByRef() 鈥 寮曠敤杩藉姞

璇存槑

void聽appendByRef(string聽varname,
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽mixed聽var,
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽bool聽merge);

append() 涓鏍凤紝鎶婂艰拷鍔犲埌鏁扮粍锛屼絾浠ュ紩鐢ㄧ殑鏂瑰紡鏉ヤ紶閫掑笺

鎶鏈鏄

鍦≒HP5涓紝appendByRef()鍦ㄥぇ閮ㄥ垎鏃跺欓兘鏄病鏈夊繀瑕佺殑銆傚彧褰撲綘甯屾湜鍦ㄦā鏉夸腑鍙互淇敼鏌愪釜PHP鏁扮粍鐨勫硷紝鎵嶆湁鍙兘浼氫娇鐢ㄥ埌appendByRef()锛屽綋鐒舵洿濂界殑鏂规硶鏄氳繃浼犻掑璞°佹敼鍙樺璞$殑鎴愬憳鍙橀噺鏉ヨ揪鍒扮洰鐨勩

Technical Note

The merge parameter respects array keys, so if you merge two numerically indexed arrays, they may overwrite each other or result in non-sequential keys. This is unlike the PHP array_merge() function which wipes out numerical keys and renumbers them.

Example聽14.5.聽appendByRef()


<?php
// 杩藉姞閿煎
$smarty->appendByRef('Name', $myname);
$smarty->appendByRef('Address', $address);
?>

   

鍙傝 append(), assign()getTemplateVars().

Comments
No comments for this page.
Post a Comment
All comments are moderated. Support questions are ignored, use the forums instead.
Author:
Email: (not shown)
What is 19 plus 17? (Are you human?)

Advertisement