Description
Gets tide information from the $tide_urlNote: There is limited error checking here. It can fail for many reasons but it will produce messages when it happens. These are suppressed by the @ but can be logged by error handlers The most likely causes of failure are:
- $tide_url is not a valid RSS feed – see bw_tideurl_namify()
- server is not connected to the internet
- https://www.tidetimes.org.uk is not responding
- https://www.tidetimes.co.uk is not responding
Usage
$string = bw_get_tide_info( $tide_url );Parameters
- $tide_url
- ( string ) required – the RSS feed for the desired location
Returns
string| null – the response XML |
|---|
