Json Decode

08/01/2016 18:01 SelecatTV#1
Hallo,

ich würde gerne stupide gesagt ein Example haben für folgendes:

[Only registered and activated users can see links. Click Here To Register...]

Das soll also als Tabelle im PHP ausgegeben werden, das möchte ich in meinem Shop einbauen um eine IBAN Nummer aus Kontonummer und Banleitzahl zu generieren!

Als Ausgabe will ich dann dieses Beispiel haben :

Eingabe1 : Kontonummer
Eingabe2 ; Bankleitzahl

Ausgabe : Generierte Iban Nummer

Das ganze soll als Json funktionieren, aber ich findee nichts verständliches, da ich es als echo haben will und nicht mit printf und im Echo möchte ich die Daten definieren.

Beispiel :

PHP Code:
public function getBasicInfo($destination null)
{
    
$response = array(
        
'id' => $this->id,
        
'name' => $this->name,
        
'category' => ! empty($this->category_id) ? $this->category->name '',
        
'neighborhood' => ! empty($this->neighborhood) ? $this->neighborhood '',
        
'city' => (! empty($this->city) ? $this->city '') . (! empty($this->state_id) ? (! empty($this->city) ? ', ' '') . $this->state->abbreviation ''),
        
'dorms' => $this->dormitories_text,
        
'area' => $this->area,
        
'status' => ! empty($this->status_id) ? $this->status->name '',
        
'price' => $this->price 'R$ ' number_format($this->price2',''.') : '',
        
'installment' => $this->installment 'R$ ' number_format($this->installment2',''.') : '',
        
'image' => ! empty($this->card_image_id) && is_object($this->card_image) ? $this->card_image->getUrl() : '',
        
'logo' => ! empty($this->logo_image_id) && is_object($this->logo_image) ? $this->logo_image->getUrl() : '',
        
'permalink' => $this->getPermalink($destination),
        
'about' => ! empty($this->about) ? $this->get_html($this->about) : '',
        
'construction' => $this->getLatestConstructionStageProgress(),
    );
    return 
$response;

Sowas in der Art aber ich finde nichts anständiges.
08/03/2016 09:59 0xFADED#2
Schau dir mal die PHP funktionen [Only registered and activated users can see links. Click Here To Register...] und [Only registered and activated users can see links. Click Here To Register...] an :)