Files
tougao/vendor/phpoffice/math/docs/usage/elements/operator.md
wangjinlei 881ac3e056 1
2024-07-17 09:23:45 +08:00

511 B

Usage

To create an operator, use the PhpOffice\Math\Element\Operator class.

Methods

getValue

The method has no parameter.

setValue

The method has one parameter :

  • string $value

Example

Math

+

XML

<math display="block">
  <mo>+</mo>
</math>

PHP

<?php

use PhpOffice\Math\Element;
use PhpOffice\Math\Math;

$math = new Math();

$identifier = new Element\Operator('+');

$math->add($identifier);