URL Query String was a difficult and time consuming thing before the introduction of URLSearchParams() API, which is supported on all major browsers i.e. Firefox 44+, Opera 36+, Edge 17+, Safari 10.3+ and Chrome 49+. As usual Internet Explorer or Edge still lags behind.
This simple snippet can flatten a multi dimensional Array and keep the keys intact.
In order to check the current installed version of PowerShell use PSVersionTable.PSVersion. If PSVersion variable does not exists them it is Version 1.0, as it was available at that time.
PHP snippet function to check whether a string endsWith with a specified string or not. Function returns Boolean. This function can also handle case sensitivity.