Price.xml - 400 мб
$xmlReader->xml(<?php
ini_set("memory_limit", "2056M"); //выделяем 2Гб памяти на работу скрипта // prepare sql and bind parameters
$stmt = $conn->prepare("INSERT INTO MyGuests (firstname, lastname, email)
VALUES (:firstname, :lastname, :email)");
$stmt->bindParam(':firstname', $firstname);
$stmt->bindParam(':lastname', $lastname);
$stmt->bindParam(':email', $email);
// insert a row
$firstname = "John";
$lastname = "Doe";
$email = "john@example.com";
$stmt->execute();
// insert another row
$firstname = "Mary";
$lastname = "Moe";
$email = "mary@example.com";
$stmt->execute();
// insert another row
$firstname = "Julie";
$lastname = "Dooley";
$email = "julie@example.com";
$stmt->execute(); echo htmlspecialchars($bc, ENT_QUOTES); #[^\p{Cyrillic}a-zA-Z0-9]#u<?php
$pcreReflector = new ReflectionExtension("pcre");
$pcreReflector->info(); каким-то образом также раскодировать
# coding=utf8
# the above tag defines encoding for this document and is for Python 2.x compatibility
import re
regex = r".*?([0-9]+)\s?м².*"
test_str = "1-к квартира, 39 м², 1/5 эт."
subst = "\\1"
# You can manually specify the number of replacements by changing the 4th argument
result = re.sub(regex, subst, test_str, 0, re.MULTILINE | re.UNICODE)
if result:
print (result)
# Note: for Python 2.7 compatibility, use ur"" to prefix the regex and u"" to prefix the test string and substitution.