How to echo variable value outside of the function in WordPress

<?php
function ybr_client_results(){
    $client_details = $_POST['client_details'];
    die();
}
add_action('wp_ajax_ybr_client_results', 'ybr_client_results');

?>

How to echo this $client_details value outside of the function

Read more here: How to echo variable value outside of the function in WordPress

Leave a Reply

Your email address will not be published. Required fields are marked *