Find Jobs
Hire Freelancers

PHP Help Needed: Convert preg_replace() to preg_replace_callback

$15-20 USD

Concluído
Publicado há quase 6 anos

$15-20 USD

Pago na entrega
I need the following converted to "preg_replace_callback": // decode three byte unicode characters $string = preg_replace("/([\340-\357])([\200-\277])([\200-\277])/e", "'&#'.((ord('\\1')-224)*4096 + (ord('\\2')-128)*64 + (ord('\\3')-128)).';'", $string); // decode two byte unicode characters $string = preg_replace("/([\300-\337])([\200-\277])/e", "'&#'.((ord('\\1')-192)*64+(ord('\\2')-128)).';'", $string); The reason I need this conversion is because I was getting the following error: "Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback" (If there's a more efficient way of doing this, I'm open to alternatives as well)
ID do Projeto: 17150763

Sobre o projeto

9 propostas
Projeto remoto
Ativo há 6 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
Is done , reply this so we can discuss , thanks .
$20 USD em 0 dia
5,0 (25 avaliações)
4,1
4,1
9 freelancers estão ofertando em média $20 USD for esse trabalho
Avatar do Usuário
sir pm me im good in php i can fix this .. sir pm me im good in php i can fix this .. sir pm me im good in php i can fix this ..
$20 USD em 0 dia
5,0 (140 avaliações)
6,2
6,2
Avatar do Usuário
My Successfully Completed Projects on Wordpress using Freelancer.com: https://www.freelancer.com/projects/php/Create-mobile-seller-API-connection-16420516/ https://www.freelancer.com/projects/php/Update-Wordpress-plugin-place-script/ https://www.freelancer.com/projects/php/Compare-results-fix-code-wordpress/ https://www.freelancer.com/projects/php/Civicrm-installed-Wordpress-search-miles/ https://www.freelancer.com/projects/wordpress/would-like-hire-WordPress-Developer-16519131/
$22 USD em 7 dias
5,0 (76 avaliações)
5,7
5,7
Avatar do Usuário
Hi Dear client I am ready to fix the php error and i will give you 100% satisfaction with requirements. You can check my previous work and reviews. Thanks
$20 USD em 0 dia
5,0 (27 avaliações)
4,4
4,4
Avatar do Usuário
Hello, I am a professional php developer having 5 years of experience on wordpress, codeigniter, core php, opencart, magento, shopify, html , javascript, jquery. I analyze, research, and gather information on the client requirement and provide them best possible web solution. I have worked on E-commerce(Market place & Simple store), Classified, Newspaper, quiz game, real state websites, auction websites, simple information websites and a govt project for water supply. WHY SHOULD YOU HIRE ME ??? 1. Seamless communication through Phone, Skype, Email or chat as per client's convenience and regular updates for the project 2. Flexible Timings and Dedicated Support. . 3. Strong programming and debugging skills 4. Hard-working, dedicated team player with ability to grasp new technical concepts and programming languages easily. Thnaks Parveen
$22 USD em 10 dias
5,0 (12 avaliações)
3,4
3,4
Avatar do Usuário
Hi, I am an experienced php developer and I am interested into resolving this error for you as a developer. I will make sure to provide you 100% accuracy for each task as I do believe in long term business relations with happy clients. Please message me on freelancer so that we can disscuss more details on chat. Thank you!
$20 USD em 2 dias
5,0 (1 avaliação)
1,4
1,4
Avatar do Usuário
// decode three byte unicode characters $string = preg_replace_callback( '/([\340-\357])([\200-\277])([\200-\277])/', function($s){ return "'&#'.((ord('$s[1]')-224)*4096 + (ord('$s[2]')-128)*64 + (ord('$s[3]')-128)).';'"; }; $string ); // decode two byte unicode characters $string = preg_replace_callback( '/([\300-\337])([\200-\277])/', function($s){ return "'&#'.((ord('$s[1]')-192)*64+(ord('$s[2]')-128)).';'"; }; $string ); try this i hope it works
$15 USD em 1 dia
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) UNITED STATES
San Francisco, United States
5,0
229
Método de pagamento verificado
Membro desde jul. 22, 2002

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.