How to Access the First Element of a PHP Array
You can get the value of the first element in the array by using the index 0 like this:
$firstValue = $yourArray[0];
In your case, you can get the value of the first element like this:
$firstValue = $yourArray[0];
echo $firstValue; // Output: http://localhost/rooghan/wp-content/uploads/2023/04/j3.png
This will give you the value of the first element in the array.
原文地址: https://www.cveoy.top/t/topic/nxQ2 著作权归作者所有。请勿转载和采集!