/**
* @param $str
* @param $char
* @return array
* @author: LuckyHhy <jackhhy520@qq.com>
* @name: getCharpos2
* @describe: Get the position of all occurrences of the character in the string according to the keyword
*/publicfunctiongetCharpos2($str,$char){$j=0;$arr=[];$count=substr_count($str,$char);for($i=0;$i<$count;$i++){$j=strpos($str,$char,$j);$arr[]=$j;$j=$j+1;}return$arr;}
$str="An equilibrium statistical theory of coherent structures is applied to midlatitude
bands in the northern and southern hemispheres of Jupiter. The theory imposes energy and
circulation constraints on the large-scale motion and uses a prior distribution on potential
vorticity fluctuations to parameterize the small-scale turbulent eddies. Nonlinearly stable
coherent structures are computed by solving the constrained maximum entropy principle governing
the equilibrium states of the statistical theory. The theoretical predictions are consistent with the
observed large-scale features of the weather layer if and only if the prior distribution has anticyclonic
skewness, meaning that intense anticyclones predominate at small scales. Then the computations show that
anticyclonic vortices emerge at the latitudes of the Great Red Spot and the White Ovals in the southern band, whereas
in the northern band no vortices form within the zonal jets. Recent observational data from the Galileo mission support the
occurrence of intense small-scale anticyclonic forcing. The results suggest the possibility of using equilibrium statistical theory for
inverse modeling of the small-scale characteristics of the Jovian atmosphere from observed features.";$key="theoretical";var_dump($this->get_ju($str,$key));//输出结果string(257)" The theoretical predictions are consistent with the
observed large-scale features of the weather layer if and only if the prior distribution has anticyclonic
skewness, meaning that intense anticyclones predominate at small scales."