Skip to content

Commit

Permalink
clarified the behaviour when a string is passed
Browse files Browse the repository at this point in the history
  • Loading branch information
WanWizard committed Aug 27, 2013
1 parent e59a063 commit 1a85a21
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions classes/uri.html
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,8 @@ <h4 class="method" id="method_string">string()</h4>
<h4 class="method" id="method_build_query_string">build_query_string($values ...)</h4>
<p>
The <strong>build_query_string</strong> method allows you to generate a query string from one or more passed assoc array or string values.
You can pass in Input::get() to construct an updated query string from the existing one.
You can pass in Input::get() to construct an updated query string from the existing one. If you pass a string, it will be assumed to be a
switch, and will be converted to "string=1".
</p>
<table class="method">
<tbody>
Expand Down Expand Up @@ -466,7 +467,7 @@ <h4 class="method" id="method_build_query_string">build_query_string($values ...
<tr>
<th>Example</th>
<td>
<pre class="php"><code>// returns "varA=varA&amp;varB&amp;varC=varC"
<pre class="php"><code>// returns "varA=varA&amp;varB=1&amp;varC=varC"
echo Uri::build_query_string(array('varA' => 'varA'), 'varB', array('varC' => 'varC'));</code></pre>
</td>
</tr>
Expand Down

0 comments on commit 1a85a21

Please sign in to comment.