8000 Add Url::replace()? · Issue #5 · cmb69/Plib_XH · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add Url::replace()? #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cmb69 opened this issue Mar 22, 2025 · 0 comments
Open

Add Url::replace()? #5

cmb69 opened this issue Mar 22, 2025 · 0 comments

Comments

@cmb69
Copy link
Owner
cmb69 commented Mar 22, 2025

In some plugins we had Url::replace() to replace multiple params in one go. That might be more readable (and is more efficient) than using multiple ::with()s. E.g.

https://github.com/cmb69/ocal_xh/blob/86ebc6dd610bd07219f5b9d47d8c1ebcf13c8935/classes/Url.php#L43-L47

Possible alternative: ::with() accepts string|array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0