Skip to content

Tag: php

get every words backwards using php

I want to get the text and print every words backwards. Example: Hello World Output: World hello This is my codes so far. It is different, I get output backwards but per string. $string = “hello …

Laravel – API return fields as string while they are int in the DB

I have the following code: In the DB, most of the fields of the DailyMission / userProgress models are integers – but the API return them as string. for example: instead of: Any idea what can cause this issue? Version: Answer In your model, you should define the field as an integer in the $cast attribut…

How can i store following image using nodejs

I’m scraping the data from the website in order to scrape further data i need to solve captcha that i’m thinking of giving user to solve but site uses language PHP after some digging site is using PHP-GD that i need to scrap as image but URL giving me some values that i don’t know how to pro…