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

Merged
merged 1 commit into from Mar 24, 2012
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>