A
A
Anastasia2020-05-27 20:53:12
PHP
Anastasia, 2020-05-27 20:53:12

How to make a link with words from the title?

Hello everyone, I have a portfolio on the site. Each project is opened using the link mysite.com/project?post_id=1 network

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
ThunderCat, 2020-05-27
@ThunderCat

It's called a slug, the simplest method is to use the Transliterator class and preg_replace + strtolower for non-literals.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question