Sobes.tech
Junior — Middle

Can you tell about your experience working with PHP and projects implemented in this language?

sobes.tech AI

Answer from AI

I have worked with PHP on several projects, including web application development and REST API. I used PHP to create server-side logic, interact with databases (MySQL, PostgreSQL) via PDO, and integrate with external services. In one project, I implemented a content management system with user authentication, roles, and dynamic page generation.

Here is a simple PHP script example for connecting to a database and fetching data:

<?php
$pdo = new PDO('mysql:host=localhost;dbname=testdb', 'user', 'password');
$stmt = $pdo->query('SELECT id, name FROM users');
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
    echo $row['id'] . ': ' . $row['name'] . "\n";
}
?>
Can you tell about your experience working with PHP… - sobes.tech