Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Inflector::words_to_upper() supports others separator types. #335

Merged
merged 1 commit into from

2 participants

@dbpolito

Updating words_to_upper for pull fuel/core#877

@WanWizard WanWizard merged commit 814c312 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 22, 2012
  1. @dbpolito
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 1 deletion.
  1. +7 −1 classes/inflector.html
View
8 classes/inflector.html
@@ -153,6 +153,11 @@ <h4 class="method" id="method_words_to_upper">words_to_upper($class)</h4>
<td><i>Required</i></td>
<td>The classname.</td>
</tr>
+ <tr>
+ <th><kbd>$sep</kbd></th>
+ <td><i>_</i></td>
+ <td>The separator</td>
+ </tr>
</table>
</td>
</tr>
@@ -163,7 +168,8 @@ <h4 class="method" id="method_words_to_upper">words_to_upper($class)</h4>
<tr>
<th>Example</th>
<td>
- <pre class="php"><code>echo Inflector::words_to_upper('fuel_users'); // returns Fuel_Users</code></pre>
+ <pre class="php"><code>echo Inflector::words_to_upper('fuel_users'); // returns Fuel_Users
+echo Inflector::words_to_upper('module::method', '::'); // returns Module::Method</code></pre>
</td>
</tr>
</tbody>
Something went wrong with that request. Please try again.