WPDev.one
Core Function
View Source on Trac ↗

_split_str_by_whitespace()

_split_str_by_whitespace( mixed $text, mixed $goal )

Breaks a string into chunks by splitting at whitespace characters.

Parameters 2 required

Name / Type Description
$text
string

The string to split.

Required
$goal
int

The desired chunk length.

Required

Return Value

(array)
Numeric array of chunks.

Function Information

Since Version
3.4.0
Source File
wp-includes/formatting.php
Advertisement