Skip to content

Instantly share code, notes, and snippets.

View YOzaz's full-sized avatar

Marijus Plančiūnas YOzaz

View GitHub Profile
<?php
$id = isset($response['result']->post->ID)
? $response['result']->post->ID
: ( isset($response['result']->postID)
? $response['result']->postID
: ( isset($response['result']->id)
? $response['result']->id
: null
)