$data = file_get_contents( 'https://steampay.com/api/products' );
if ( ! empty( $data ) ) {
$args = json_decode( $data );
foreach ( $args->products as $one_product ) {
echo $one_product->title . '<br>';
}
}
const selectors = [ '.addservice', '.addprice' ];
const data = Array.from(
document.querySelectorAll('.addserviceBlock'),
n => selectors.map(m => n.querySelector(m).value)
);
$posts = array(
95 => array( 'count' => 2, 'ID' => 77 ),
65 => array( 'count' => 1, 'ID' => 144 ),
81 => array( 'count' => 1, 'ID' => 106 ),
84 => array( 'count' => 1, 'ID' => 103 ),
0 => array( 'count' => 0, 'ID' => 327 ),
1 => array( 'count' => 0, 'ID' => 326 ),
2 => array( 'count' => 0, 'ID' => 325 )
);
$ids = array();
foreach ($posts as $post) {
$ids[] = $post['ID'];
}