Skip to content

Commit

Permalink
Merge branch '1.3/develop' of git://github.com/fuel/docs into 1.3/dev…
Browse files Browse the repository at this point in the history
…elop_japanese
  • Loading branch information
宮川 貴子 authored and 宮川 貴子 committed Aug 15, 2012
2 parents 8ac250e + 470bbc6 commit c5352eb
Showing 1 changed file with 129 additions and 0 deletions.
129 changes: 129 additions & 0 deletions classes/str.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,135 @@ <h4 class="method" id="method_tr">tr($string, $array = array())</h4>
</table>
</article>

<article>
<h4 class="method" id="method_is_json">is_json($string)</h4>
<p>The <strong>is_json</strong> method check if a string is json encoded.</p>
<table class="method">
<tbody>
<tr>
<th class="legend">Static</th>
<td>Yes</td>
</tr>
<tr>
<th>Parameters</th>
<td>
<table class="parameters">
<tr>
<th>Param</th>
<th>Type</th>
<th>Default</th>
<th class="description">Description</th>
</tr>
<tr>
<th><kbd>$string</kbd></th>
<td><em>string</em></td>
<td><em>Required</em></td>
<td>The input string.</td>
</tr>
</table>
</td>
</tr>
<tr>
<th>Returns</th>
<td>bool</td>
</tr>
<tr>
<th>Example</th>
<td>
<pre class="php"><code>Str::is_json('{"0":"An","encoded":["string"]}'); // returns true</code></pre>
</td>
</tr>
</tbody>
</table>
</article>

<article>
<h4 class="method" id="method_is_serialized">is_serialized($string)</h4>
<p>The <strong>is_serialized</strong> method check if a string is serialized.</p>
<table class="method">
<tbody>
<tr>
<th class="legend">Static</th>
<td>Yes</td>
</tr>
<tr>
<th>Parameters</th>
<td>
<table class="parameters">
<tr>
<th>Param</th>
<th>Type</th>
<th>Default</th>
<th class="description">Description</th>
</tr>
<tr>
<th><kbd>$string</kbd></th>
<td><em>string</em></td>
<td><em>Required</em></td>
<td>The input string.</td>
</tr>
</table>
</td>
</tr>
<tr>
<th>Returns</th>
<td>bool</td>
</tr>
<tr>
<th>Example</th>
<td>
<pre class="php"><code>Str::is_serialized('a:2:{i:0;s:2:"An";s:7:"encoded";a:1:{i:0;s:6:"string";}}');
// returns true</code></pre>
</td>
</tr>
</tbody>
</table>
</article>

<article>
<h4 class="method" id="method_is_html">is_html($string)</h4>
<p>The <strong>is_html</strong> method check if a string is html.</p>
<table class="method">
<tbody>
<tr>
<th class="legend">Static</th>
<td>Yes</td>
</tr>
<tr>
<th>Parameters</th>
<td>
<table class="parameters">
<tr>
<th>Param</th>
<th>Type</th>
<th>Default</th>
<th class="description">Description</th>
</tr>
<tr>
<th><kbd>$string</kbd></th>
<td><em>string</em></td>
<td><em>Required</em></td>
<td>The input string.</td>
</tr>
</table>
</td>
</tr>
<tr>
<th>Returns</th>
<td>bool</td>
</tr>
<tr>
<th>Example</th>
<td>
<pre class="php"><code>Str::is_html('Lorem ipsum &lt;b>dolor sit amet&lt;/b>, consectetur &lt;u>adipiscing&lt;/u> elit.');
// returns true</code></pre>
</td>
</tr>
</tbody>
</table>
</article>


</div>

<footer>
Expand Down

0 comments on commit c5352eb

Please sign in to comment.