How to get specific string/value from an array? php
I am creating a custom wordpress theme and i am little stuck in one situation. I created an array $ark and get some values in it
<?php $ark = esc_url( add_query_arg( 'pdff', $post->ID ) ); print_r($ark) ; echo 'jonty'; ?>
here below is the output of the above code;
Array (  => /jobifylocal/wp-admin/admin-ajax.php?pdff=127 ) jonty
what i want is that the only value of pdff after equals-to like here 127 i only need 127 in a $variable to echo somewhere else.