C#使用字符串 [英] c# work with strings

查看:143
本文介绍了C#使用字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

define('DB_NAME', 'example1');
/** MySQL database username */
define('DB_USER', 'example2');
/** MySQL database password */
define('DB_PASSWORD', 'example3');
/** MySQL hostname */
define('DB_HOST', 'example4');
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');



这是我的wordpresse的wp-config.php文件中的代码块.我已经编写了一个c#应用程序以通过ftp下载此文件.但是我该如何处理文件,以便得到



This is a block of code in my wordpresse''s wp-config.php file. I have wrote a c# app to download this file via ftp. But how can I manipulate the file so that I get

$db_name = "example1";
$db_user = "example2";
$db_password = "example3";.......



谢谢



Thanks

推荐答案

db_name ="example1";
db_name = "example1";


db_user ="example2";
db_user = "example2";


db_password ="example3"; .......
db_password = "example3";.......



谢谢



Thanks


这篇关于C#使用字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆