Skip to content

PHP add html tag to first word

Trying to add HTML tags around the first word in each new line in WooCommerce short description and validate that the file exist. If it exist it will output a link. I tried this: This is as close I could get, the limitation is that you need to add all words that needs to be changed (will be total 200+)

How to get image exif data via cURL PHP

I download an image by cURL on KOBO Collect server. The download is fine, however it overwrites the exif data in the image. I use Code Igniter 4. I would like to get the exif data contained in the …

how do i count the amount of rows under a username?

I am making a forum and on the homepage I want to make some kind of a leaderboard where you can see the top 10 posters + and how much they have posted. I want to only get those users out of the database. Ill add a picture of my database. Please let me know. Database Answer I don’t know

JS Regex named groups with replace()

In JS, I’m trying to build an object from the below code. However I’m stuck at getting regex named groups with the below replace function. NOTE: What I’m trying to do is, Select characters from str variable from “:” to “,” and replace it with formatters values. Then m…