php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "string variables"

What function can be used in PHP to separate a string into two variables based on a delimiter?

To separate a string into two variables based on a delimiter in PHP, you can use the `explode()` function. This function takes the delimiter as the fi...

How can string variables be correctly handled in the mysql_connect function to prevent errors?

When using string variables in the mysql_connect function, it is important to properly escape the variables to prevent SQL injection attacks and error...

How can JavaScript be used to extract variables from the href string of a link for further processing?

To extract variables from the href string of a link in JavaScript for further processing, you can use the URLSearchParams API. This allows you to easi...

How can you properly format and handle string variables in MySQL queries to avoid syntax errors?

When handling string variables in MySQL queries, it is essential to properly format and escape the strings to avoid syntax errors or SQL injection att...

What are some alternative methods to substr() and str_replace() for manipulating string variables in PHP?

When manipulating string variables in PHP, alternative methods to substr() and str_replace() include using preg_replace() for more complex string repl...

Showing 51 to 55 of 10000 results

‹ 1 2 ... 8 9 10 11 12 13 14 ... 1999 2000 ›
PHP.ORG

A free knowledge base for PHP developers. Open to all.

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.