Permalink
Browse files

Update user guide for the new function array_to_str()

  • Loading branch information...
1 parent ce0f74b commit 3d56edd7771fa68e5c0e7b7918e4f5fbce021163 @dixy committed Oct 4, 2011
Showing with 15 additions and 0 deletions.
  1. +15 −0 user_guide/helpers/array_helper.html
@@ -153,6 +153,21 @@
<p>This ensures that only the id, title and content fields are sent to be updated.</p>
+
+<h2>array_to_str()</h2>
+
+<p>It's the same function as the implode native function, but let's you define an other separator for the last element.</p>
+
+<code>
+$array = array('red', 'green', 'blue');<br />
+<br />
+// returns "red, green, blue"<br />
+echo array_to_str($array);<br />
+<br />
+// returns red, green and blue"<br />
+echo array_to_str($array, ', ', ' and ');
+</code>
+
</div>
<!-- END CONTENT -->

0 comments on commit 3d56edd

Please sign in to comment.