Replace array_interleave() by phutil_implode_html()
Summary: I like this abstraction better. Result of `phutil_implode_html()` may be also used as a param of `hsprintf()`. Test Plan: None. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4904
This commit is contained in:
@@ -108,13 +108,13 @@ must to maintain backward compatibility.)
|
||||
|
||||
If you need to build a list of items with some element in between each of them
|
||||
(like a middot, comma, or vertical bar) you can use
|
||||
@{function:array_interleave}:
|
||||
@{function:phutil_implode_html}:
|
||||
|
||||
// Render links with commas between them.
|
||||
phutil_tag(
|
||||
'div',
|
||||
array(),
|
||||
array_interleave(', ', $list_of_links));
|
||||
phutil_implode_html(', ', $list_of_links));
|
||||
|
||||
= AphrontView Classes =
|
||||
|
||||
|
||||
Reference in New Issue
Block a user