Function text2words
Chops a string into words and prepares them to be inserted into (or searched from) the database.
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs.php
string |
$text |
The text to split into words |
integer |
$max_chars = 20 |
The maximum number of characters per word |
boolean |
$encrypt = false |
Whether to encrypt the results |
array
|
An array of ints or words depending on $encrypt |