Spiting the real and imaginary parts of the given complex strings based on ' + ' and ' i ' symbols .
$ x = preg_split ( " / [ \s + ] + ▁ i / " , $ a ) ; $ y = preg_split ( " / [ \s + ] + ▁ i / " , $ b ) ;