You’re not concatenating the strings properly. Use . operator to concatenate the string like this.
<?php
echo '<script>window.location.assign("'. myGlobalFunction().'/onboardingform/core/admin/login.php")</script>';
And there is no need of echo statement inside another echo.
4
solved ECHO a