# e2pdf/1.32.49/classes/model/e2pdf-convert.php

E2Pdf – Export Pdf Tool for WordPress, version 1.32.49. 31 lines.

- Page: https://pluginprobe.com/plugins/e2pdf/1.32.49/code/classes/model/e2pdf-convert.php
- Raw: https://pluginprobe.com/plugins/e2pdf/1.32.49/raw/classes/model/e2pdf-convert.php
- Modified: 2026-09-16T08:14:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/e2pdf/1.32.49/code/classes/model/e2pdf-convert.php#L10-L20`.

```php
<?php

/**
 * File: /model/e2pdf-convert.php
 *
 * @package  E2Pdf
 * @license  GPLv3
 * @link     https://e2pdf.com
 */
if (!defined('ABSPATH')) {
    die('Access denied.');
}

class Model_E2pdf_Convert extends Model_E2pdf_Model {

    // to PHP
    public function toPHP($data = array()) {
        $content = '';
        foreach ($data as $key => $value) {
            if (is_array($value)) {
                $content .= "'" . $key . "' => [";
                $content .= $this->toPHP($value);
                $content .= "],\n";
            } else {
                $content .= "'" . $key . "' => '" . str_replace("'", "\'", $value) . "',\n";
            }
        }
        return $content;
    }
}

```
