I Understand What You wants to say
use foreach loop insted of print_r()
<?php
$array = array("https://example.com/page-1");
foreach($array as $key => $value)
{
echo $value;
}
echo "<hr>";
echo $array [0];
?>
Also check Result Here.
5
solved Get single array value