List of PHP binary safe functions: Difference between revisions
Jump to navigation
Jump to search
(Created page with "List of PHP [https://en.wikipedia.org/wiki/Binary-safe binary safe] functions {| class="wikitable sortable" |- ! Goal !! Binary safe function !! '''NOT''' binary safe |- | "R...") |
(No difference)
|
Revision as of 13:52, 11 July 2019
List of PHP binary safe functions
| Goal | Binary safe function | NOT binary safe |
|---|---|---|
| "Return part of a string" | mb_substr | substr |
| "Get string length" | mb_strlen | strlen |
| "Replace all occurrences of the search string with the replacement string" | str_replace | |
| "Find the position of the first occurrence of a substring in a string" | strpos | |
| "Replace text within a portion of a string" | substr_replace | |
| 範例 | 範例 | 範例 |