skip to Main Content

Push nested element into multidimensional array – PHP

I have this array echo '<script type="application/ld+json">'; $data = array( '@context' => 'https://schema.org', '@graph' => array(), ); $data['@graph'][] = [ "@type" => "ImageObject", ]; $data['@graph'][] = [ "@type" => "BreadcrumbList", "itemListElement" => array(), ]; print_r(json_encode($data)); echo "</script>"; Now I want…

VIEW QUESTION

printing ae instead of æ – php

`<?php namespace ModulesPrintNodeHttpControllers; //require __DIR__.'/../../vendor/autoload.php'; use Mike42EscposPrintConnectorsDummyPrintConnector; use Mike42EscposPrinter; use AppOrder; class App { private $order; private $printer; private $connector; public function init($order){ $this->order=Order::findOrFail($order->id); $this->connector = new DummyPrintConnector(); $this->printer = new Printer($this->connector); } public function printKOT(){ $this->printer->initialize(); $this->printHeder(); $this->printClient(); $this->printTable();…

VIEW QUESTION
Back To Top
Search