I am explaining you, how to reindex an array element in PHP with examples. we have an array named basicWebsiteInfo[] , we have some website information like website, url. At first, it is indexed correctly as 0,1,2. Result: Now, to understand the reindex array things, at first I am unset it by using the unset() […]
Month: July 2022
How to Get/Fetch website URL in Laravel?
I am explaining you for how to get base url or home page url in laravel website. we need to get site URL for something share/image url or link, so you can get with help of url helper and URL facade. Both are same so you can use anywhere it means in controller or view. […]