Blame | Last modification | View Log | Download
## Readers### MathMLThe name of the reader is `MathML`.``` php<?phpuse PhpOffice\Math\Reader\MathML;$reader = new MathML();$math = $reader->read('<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE math PUBLIC "-//W3C//DTD MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/mathml2.dtd"><math xmlns="http://www.w3.org/1998/Math/MathML"><mi> a </mi></math>');```### OfficeMathMLThe name of the reader is `OfficeMathML`.``` php<?phpuse PhpOffice\Math\Reader\OfficeMathML;$reader = new OfficeMathML();$math = $reader->read('<m:oMathPara xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"><m:oMath><m:f><m:num><m:r><m:t>π</m:t></m:r></m:num><m:den><m:r><m:t>2</m:t></m:r></m:den></m:f></m:oMath></m:oMathPara>');```## Methods### readThe method has one parameter :* `string` **$content**The method returns a `PhpOffice\Math\Math` object.