Why is it recommended to consider normalizing databases for each word instead of storing them in a single column separated by #?

Storing multiple words in a single column separated by a delimiter like "#" can make it difficult to search, sort, or manipulate the data efficiently. Normalizing the database by storing each word in a separate row allows for better organization, easier querying, and avoids potential issues with data integrity.

// Example of normalizing words in a database table

// Connect to the database
$pdo = new PDO("mysql:host=localhost;dbname=my_database", "username", "password");

// Sample words to insert into the database
$words = ["apple", "banana", "cherry"];

// Insert each word into the database table
foreach ($words as $word) {
    $stmt = $pdo->prepare("INSERT INTO words (word) VALUES (:word)");
    $stmt->bindParam(':word', $word);
    $stmt->execute();
}